Class RadioGroup<T>
public class RadioGroup<T> : ComponentBase, IComponent, IHandleEvent, IHandleAfterRender, ISelectionWidget<T>, IWidget<T?>, ITag
Type Parameters
T
- Inheritance
-
RadioGroup<T>
- Implements
-
IWidget<T>
- 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
HasChanges
If true, display a visual indication to the user.
[Parameter]
public bool HasChanges { get; set; }
Property Value
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
Options
Preset choices for Value.
[Parameter]
public IReadOnlyList<T> Options { get; set; }
Property Value
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
Tiles
Render the options as rectangular tiles instead of circular buttons.
[Parameter]
public bool Tiles { get; set; }
Property Value
Validity
If set, display a visual indication to the user.
[Parameter]
public MessageLevel? Validity { get; set; }
Property Value
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
Methods
BuildRenderTree(RenderTreeBuilder)
Renders the component to the supplied RenderTreeBuilder.
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
__builderRenderTreeBuilder
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()