Table of Contents

Class RadioGroup<T>

Namespace
The.Web.Widgets
Assembly
Instagile.Web.Client.dll
public class RadioGroup<T> : ComponentBase, IComponent, IHandleEvent, IHandleAfterRender, ISelectionWidget<T>, IWidget<T?>, ITag

Type Parameters

T
Inheritance
RadioGroup<T>
Implements
Inherited Members

Properties

ChildContent

Format a choice for display as HTML. May be generated in constrained circumstances (for example, inside an <option> tag).

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

Property Value

RenderFragment<T>

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

Preset choices for Value.

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

Property Value

IReadOnlyList<T>

Splat

Extra attributes for the group container, e.g. an aria-label naming the group.

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

Property Value

Dictionary<string, object>

Tiles

Render the options as rectangular tiles instead of circular buttons.

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

Property Value

bool

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 T? Value { get; set; }

Property Value

T

ValueChanged

Triggered when data is entered by the user.

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

Property Value

EventCallback<T>

Methods

BuildRenderTree(RenderTreeBuilder)

Renders the component to the supplied RenderTreeBuilder.

protected override void BuildRenderTree(RenderTreeBuilder __builder)

Parameters

__builder RenderTreeBuilder

OnInitialized()

Method invoked when the component is ready to start, having received its initial parameters from its parent in the render tree.

protected override void OnInitialized()

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()