forked from syncfusion/blazor-samples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPreloadFiles.razor
49 lines (41 loc) · 1.46 KB
/
PreloadFiles.razor
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
@page "/Uploader/PreloadFiles"
@using Syncfusion.EJ2.Blazor.Inputs
@using Syncfusion.EJ2.Blazor.Buttons
@inherits SampleBaseComponent;
<div class="col-lg-12 control-section">
<div class="control_wrapper">
<EjsUploader ID="UploadFiles" DropArea=".control-fluid" @ref="UploaderObj">
<UploaderFiles>
<UploaderUploadedFiles Name="Nature" Size=500000 Type=".png"></UploaderUploadedFiles>
<UploaderUploadedFiles Name="TypeScript Succinctly" Size=12000 Type=".pdf"></UploaderUploadedFiles>
<UploaderUploadedFiles Name="ASP.NET Webhooks" Size="500000" Type=".docx"></UploaderUploadedFiles>
</UploaderFiles>
<UploaderAsyncSettings SaveUrl="https://aspnetmvc.syncfusion.com/services/api/uploadbox/Save" RemoveUrl="https://aspnetmvc.syncfusion.com/services/api/uploadbox/Remove"></UploaderAsyncSettings>
</EjsUploader>
</div>
</div>
<div class="col-lg-4 property-section">
<div id="property" title="Properties">
<div style='margin-left: 50px; padding-top:25px;'>
<EjsButton @onclick="@ClearFiles">Clear All</EjsButton>
</div>
</div>
</div>
<style>
.control_wrapper {
max-width: 500px;
margin: auto;
}
.e-upload {
width: 100%;
position: relative;
margin-top: 15px;
}
</style>
@code {
public EjsUploader UploaderObj;
private void ClearFiles()
{
this.UploaderObj.ClearAll();
}
}