Table of Contents

Class RadioOption<TOption>

Namespace
BlazOrbit.Components.Forms
Assembly
BlazOrbit.dll

Registration-only descriptor for a BOBInputRadio option. Intentionally inherits Microsoft.AspNetCore.Components.ComponentBase (not BOBComponentBase) because it emits no DOM of its own — the parent radio container renders the options from the registered list.

public class RadioOption<TOption> : ComponentBase, IRadioOption

Type Parameters

TOption
Inheritance
object
ComponentBase
RadioOption<TOption>
Implements

Constructors

RadioOption()

public RadioOption()

Properties

ChildContent

The content to render for this option.

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

Property Value

RenderFragment

Container

The parent radio container this option is registered with.

[CascadingParameter]
public IRadioContainer? Container { get; set; }

Property Value

IRadioContainer

Disabled

When true, forces the option to be disabled.

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

Property Value

bool

Value

The value associated with this option.

[Parameter]
[EditorRequired]
public TOption? Value { get; set; }

Property Value

TOption

Methods

Dispose()

Unregisters this option from the parent container.

public void Dispose()

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