Class MBFileUploadButton
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
Density
The button's density.
[Parameter]
public MBDensity? Density { get; set; }
Property Value
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
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
Methods
BuildRenderTree(RenderTreeBuilder)
Renders the component to the supplied RenderTreeBuilder.
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
__builder
RenderTreeBuilder