HtmlForgeX

API Reference

Class

TablerRadioGroup

Namespace HtmlForgeX
Assembly HtmlForgeX
Base Element
Implements

Container for grouping multiple radio button elements.

Inheritance

Constructors

public TablerRadioGroup(String name) #

Initializes the radio group with the specified name.

Parameters

name System.String requiredposition: 0

Methods

public TablerRadioGroup Hint(String text) #
Returns: TablerRadioGroup

Adds non-error help text below the control(s).

Parameters

text System.String requiredposition: 0
public TablerRadioGroup Inline(Boolean inline = true) #
Returns: TablerRadioGroup

Sets whether radio buttons should be displayed inline.

Parameters

inline System.Boolean = true optionalposition: 0
Whether radio buttons are inline.

Returns

The current TablerRadioGroup instance.

public TablerRadioGroup Label(String text) #
Returns: TablerRadioGroup

Sets the label for the radio group.

Parameters

text System.String requiredposition: 0
The label text.

Returns

The current TablerRadioGroup instance.

public TablerRadioGroup Option(String value, String label, Boolean checked = false, Boolean disabled = false) #
Returns: TablerRadioGroup

Adds a radio option with specific configuration.

Parameters

value System.String requiredposition: 0
The radio value.
label System.String requiredposition: 1
The display label.
checked System.Boolean = false optionalposition: 2
Whether the option is checked.
disabled System.Boolean = false optionalposition: 3
Whether the option is disabled.

Returns

The current TablerRadioGroup instance.

public TablerRadioGroup Options(params String[] options) #
Returns: TablerRadioGroup

Adds radio options from string values.

Parameters

options System.String[] requiredposition: 0
Array of option values.

Returns

The current TablerRadioGroup instance.

public override String ToString() #
Returns: String

Generates the HTML markup for the radio group.

public TablerRadioGroup Validation(ValidationState state, String message) #
Returns: TablerRadioGroup

Sets validation state and message for the radio group.

Parameters

state HtmlForgeX.ValidationState requiredposition: 0
message System.String requiredposition: 1