Uploader Browse button to use e-primary styling

Hi,

I want the "Browse" button on my uploader control to pick up the standard styling of "e-primary" rather than the default button type.

First I tried just adding .CssClass("e-primary") into the @Html statement - this correctly added this into the outer e-upload DIV, but had no effect on the button.

I found the Buttons property, but no instructions. I found some hints for Blazor here, which :

I could use the syntax to change the Browse button title, but no way to affect the CssClass of the button:
@Html.EJS().Uploader("updBox").Buttons(new Syncfusion.EJ2.Inputs.UploaderButtonsProps() {Browse="A test title"}).Render()

There is another property call ContentTemplate on this object - would this work? Is there an example of how to do that?

There was this help page:
But that sets the value in JavaScript, but the whole point of the Razor syntax is to avoid that.

Thanks,



1 Reply

SP Sureshkumar P Syncfusion Team August 10, 2020 10:31 AM UTC

Hi Aubyn, 
 
Greetings from Syncfusion support. 
 
We have validated your requirement, currently we have no option to customize the browse buttons. We have already considered to Support to given Clear/Upload buttons are customizable buttons at our end and this support will be included in any one of our upcoming releases. We will implement the feature based on the customer request count and priority.   
  
You can track the status of the requested requirement from the below feedback link.  
  
 
Regards, 
Sureshkumar P 


Loader.
Up arrow icon