Table of Contents

Class EnumBox<TEnum>

Namespace
The.Web.Widgets
Assembly
Instagile.Web.Client.dll
public class EnumBox<TEnum> : ComponentBase, IComponent, IHandleEvent, IHandleAfterRender, INullableWidget<TEnum?>, IWidget<TEnum?>, ITag where TEnum : struct, Enum

Type Parameters

TEnum
Inheritance
EnumBox<TEnum>
Implements
IWidget<TEnum?>
Inherited Members

Properties

AllowNulls

If not set, null-state data will be coerced to a non-null value or input will be prevented; IsNull will never be true.

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

Property Value

bool

HasChanges

If true, display a visual indication to the user.

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

Property Value

bool

ID

The id to place on the control's primary form input, so a <label for> can focus it.

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

Property Value

string

Options

[Parameter]
public IReadOnlyList<TEnum>? Options { get; set; }

Property Value

IReadOnlyList<TEnum>

Validity

If set, display a visual indication to the user.

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

Property Value

MessageLevel?

Value

Bindable typed value.

[Parameter]
public TEnum? Value { get; set; }

Property Value

TEnum?

ValueChanged

Triggered when data is entered by the user.

[Parameter]
public EventCallback<TEnum?> ValueChanged { get; set; }

Property Value

EventCallback<TEnum?>

Methods

BuildRenderTree(RenderTreeBuilder)

Renders the component to the supplied RenderTreeBuilder.

protected override void BuildRenderTree(RenderTreeBuilder __builder)

Parameters

__builder RenderTreeBuilder

OnParametersSet()

Method invoked when the component has received parameters from its parent in the render tree, and the incoming values have been assigned to properties.

protected override void OnParametersSet()