Table of Contents

Class MBFileUploadDragAndDrop

Namespace
Material.Blazor
Assembly
Material.Blazor.dll

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

IMBIconFoundry

Label

The button's label.

[Parameter]
public string Label { get; set; }

Property Value

string

LeadingIcon

The leading icon's name. No leading icon shown if not set.

[Parameter]
public string? LeadingIcon { get; set; }

Property Value

string

OnLoadFiles

REQUIRED function called when files are loaded.

[Parameter]
public Func<InputFileChangeEventArgs, Task> OnLoadFiles { get; set; }

Property Value

Func<InputFileChangeEventArgs, Task>

TrailingIcon

The trailing icon's name. No leading icon shown if not set.

[Parameter]
public string? TrailingIcon { get; set; }

Property Value

string

Methods

BuildRenderTree(RenderTreeBuilder)

Renders the component to the supplied RenderTreeBuilder.

protected override void BuildRenderTree(RenderTreeBuilder __builder)

Parameters

__builder RenderTreeBuilder