BoldSign®Effortlessly integrate e-signatures into your app with the BoldSign® API. Create a sandbox account!
i try using File Upload component, and i have 2 question
1. How to custom text or button 'Browse...' (can remove, change button to text)
2. How to create button (or div have event onClick like Browse) like Browse can open file explore for select file
2 question for this UI destination
hello, please help me, i need help (urgent)
Hi Tien Pham,
Thank you for reaching out to us.
Query1: "How to custom text or button 'Browse...' (can remove, change button to text)"
To customize the text for the Browse, Upload, and Clear buttons in the Blazor File Upload component, you can utilize the UploaderButtons
property of the File Upload component. This allows for a more tailored user experience by replacing the default button labels with custom text.
Here is a code snippet demonstrating how to set custom text for the Browse, Upload, and Clear buttons:
|
For more details please refer the below KB article
Query2: "How to create button (or div have event onClick like Browse) like Browse can open file explore for select file"
You can use the class e-upload-browse-btn to open the File Explorer and select files. Please refer to the code snippet and sample below for more information.
Index.razor
@inject IJSRuntime JSRuntime
<div class="upload-box">
<!-- SfUploader component -->
<!-- Custom file select trigger -->
<div class="bottom-upload-content">
/* Optionally hide the text "No files chosen" */
</style>
@code {
public void OnChange(UploadChangeEventArgs args) |
JavaScript.js
function created() { |
Regards,
Priyanka K