HtmlForgeX

API Reference

Class

TablerRadio

Namespace HtmlForgeX
Assembly HtmlForgeX
Base Element
Implements

Radio button input element styled with Tabler classes.

Inheritance

Usage

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Accepted by parameters

Constructors

public TablerRadio(String name, String value) #

Initializes the radio button with the specified name and value.

Parameters

name System.String requiredposition: 0
value System.String requiredposition: 1

Methods

public TablerRadio Checked(Boolean checked = true) #
Returns: TablerRadio

Sets whether the radio button is checked by default.

Parameters

checked System.Boolean = true optionalposition: 0
Whether the radio button is checked.

Returns

The current TablerRadio instance.

public TablerRadio Description(String text) #
Returns: TablerRadio

Sets the description text displayed below the label.

Parameters

text System.String requiredposition: 0
The description text.

Returns

The current TablerRadio instance.

public TablerRadio Disabled(Boolean disabled = true) #
Returns: TablerRadio

Sets whether the radio button is disabled.

Parameters

disabled System.Boolean = true optionalposition: 0
Whether the radio button is disabled.

Returns

The current TablerRadio instance.

public TablerRadio Hint(String text) #
Returns: TablerRadio

Adds non-error help text below the control.

Parameters

text System.String requiredposition: 0
public TablerRadio Id(String id) #
Returns: TablerRadio

Sets the HTML id attribute for the radio input.

Parameters

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

Sets whether the radio button should be displayed inline.

Parameters

inline System.Boolean = true optionalposition: 0
Whether the radio button is inline.

Returns

The current TablerRadio instance.

public TablerRadio Label(String text) #
Returns: TablerRadio

Sets the label text displayed next to the radio button.

Parameters

text System.String requiredposition: 0
The label text.

Returns

The current TablerRadio instance.

public TablerRadio Required(Boolean required = true) #
Returns: TablerRadio

Marks the radio as required.

Parameters

required System.Boolean = true optionalposition: 0
public override String ToString() #
Returns: String

Generates the HTML markup for the radio button element.

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

Sets validation state and message for the radio button.

Parameters

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