Table of Contents

Class FileButton

Namespace
The.Web.Controls
Assembly
Instagile.Web.Client.dll
public class FileButton : ComponentBase, IComponent, IHandleEvent, IHandleAfterRender
Inheritance
FileButton
Implements
Inherited Members

Properties

ChildContent

Text or tags to be displayed inside the button.

[Parameter]
public RenderFragment? ChildContent { get; set; }

Property Value

RenderFragment

IsEnabled

True by default. If false, the button cannot be activated.

[Parameter]
public bool IsEnabled { get; set; }

Property Value

bool

IsPrimary

Alter styling to indicate that this action is the default option.

[Parameter]
public bool IsPrimary { get; set; }

Property Value

bool

IsSmall

Alter styling for the shorter row height used in tables.

[Parameter]
public bool IsSmall { get; set; }

Property Value

bool

Level

Optional colour scheme.

[Parameter]
public MessageLevel? Level { get; set; }

Property Value

MessageLevel?

OnChange

Function to run when a file is selected.

[Parameter]
public EventCallback<InputFileChangeEventArgs> OnChange { get; set; }

Property Value

EventCallback<InputFileChangeEventArgs>

Splat

Extra attributes for the underlying <button> tag.

[Parameter(CaptureUnmatchedValues = true)]
public Dictionary<string, object>? Splat { get; set; }

Property Value

Dictionary<string, object>

Methods

BuildRenderTree(RenderTreeBuilder)

Renders the component to the supplied RenderTreeBuilder.

protected override void BuildRenderTree(RenderTreeBuilder __builder)

Parameters

__builder RenderTreeBuilder