Interface IRadioContainer
- Namespace
- BlazOrbit.Components.Forms
- Assembly
- BlazOrbit.dll
Contract implemented by radio-group containers that coordinate child IRadioOption selection.
public interface IRadioContainer
Properties
ElementType
Underlying value type the radio group binds to.
Type ElementType { get; }
Property Value
- Type
Methods
IsOptionSelected(object?)
Returns true when value matches the currently selected option.
bool IsOptionSelected(object? value)
Parameters
valueobject
Returns
- bool
RegisterOption(IRadioOption)
Registers a child option with the container.
void RegisterOption(IRadioOption option)
Parameters
optionIRadioOption
SelectOptionAsync(object?)
Sets the currently selected option to the one whose value matches value.
Task SelectOptionAsync(object? value)
Parameters
valueobject
Returns
- Task
UnregisterOption(IRadioOption)
Removes a previously registered option from the container.
void UnregisterOption(IRadioOption option)
Parameters
optionIRadioOption