Class MBFileUploadDragAndDrop
A material card styled wrapper for the
InputFile
component that can load files either by drag and drop or clicking the card area
public class MBFileUploadDragAndDrop : ComponentFoundation, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
- Inheritance
-
MBFileUploadDragAndDrop
- Implements
- Inherited Members
Constructors
MBFileUploadDragAndDrop()
public MBFileUploadDragAndDrop()
Properties
IconFoundry
The foundry to use for both leading and trailing icons.
IconFoundry="IconHelper.MIIcon()"
IconFoundry="IconHelper.FAIcon()"
IconFoundry="IconHelper.OIIcon()"
Overrides IconFoundryName
[Parameter]
public IMBIconFoundry? IconFoundry { get; set; }
Property Value
Label
The button's label.
[Parameter]
public string Label { get; set; }
Property Value
LeadingIcon
The leading icon's name. No leading icon shown if not set.
[Parameter]
public string? LeadingIcon { get; set; }
Property Value
OnLoadFiles
REQUIRED function called when files are loaded.
[Parameter]
public Func<InputFileChangeEventArgs, Task> OnLoadFiles { get; set; }
Property Value
TrailingIcon
The trailing icon's name. No leading icon shown if not set.
[Parameter]
public string? TrailingIcon { get; set; }
Property Value
Methods
BuildRenderTree(RenderTreeBuilder)
Renders the component to the supplied RenderTreeBuilder.
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
__builder
RenderTreeBuilder