Exemple #1
0
 private static string?GetDiabledString(UploadFile item) => (item.Uploaded && item.Code == 0) ? null : "disabled";
Exemple #2
0
 private static string?GetFileIcon(UploadFile item) => CssBuilder.Default("fa")
 .AddClass("fa-file-text-o", true)
 .Build();
Exemple #3
0
 private string?GetUploadItemClassString(UploadFile item) => CssBuilder.Default("upload-item")
 .AddClass("is-valid", item.Code == 0)
 .AddClass("is-invalid", item.Code != 0)
 .AddClass("is-circle", IsCircle)
 .Build();
Exemple #4
0
 private static string?GetUploadCardItemClassString(UploadFile item) => CssBuilder.Default("upload-item")
 .AddClass("is-valid", item.Code == 0 && item.Uploaded)
 .AddClass("is-invalid", item.Code != 0 && item.Uploaded)
 .Build();
Exemple #5
0
 private void Update(UploadFile file)
 {
     StateHasChanged();
 }