Table of Contents

Class MBFileUploadButton

Namespace
Material.Blazor
Assembly
Material.Blazor.dll

A material button styled wrapper for the InputFile component.

public class MBFileUploadButton : ComponentFoundation, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
Inheritance
MBFileUploadButton
Implements
Inherited Members

Constructors

MBFileUploadButton()

public MBFileUploadButton()

Properties

ButtonStyle

The button's Material Theme style - see MBButtonStyle.

Overrides ButtonStyle, CardActionButtonStyle or DialogActionButtonStyle as relevant.

[Parameter]
public MBButtonStyle? ButtonStyle { get; set; }

Property Value

MBButtonStyle?

Density

The button's density.

[Parameter]
public MBDensity? Density { get; set; }

Property Value

MBDensity?

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>

TouchTarget

Inclusion of touch target

[Parameter]
public bool? TouchTarget { get; set; }

Property Value

bool?

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