HtmlForgeX

API Reference

Class

TablerInput

Namespace HtmlForgeX
Assembly HtmlForgeX
Base Element
Implements

Generic form input element styled with Tabler classes.

Inheritance

Constructors

public TablerInput(String name) #

Initializes or configures TablerInput.

Parameters

name System.String requiredposition: 0

Methods

public TablerInput Accept(String value) #
Returns: TablerInput

Accept attribute for file inputs (e.g., .pdf,image/*).

Parameters

value System.String requiredposition: 0
public TablerInput Autocomplete(String value) #
Returns: TablerInput

Set browser autocomplete attribute (e.g., off, email).

Parameters

value System.String requiredposition: 0
public TablerInput Disabled(Boolean disabled = true) #
Returns: TablerInput

Disable the input element.

Parameters

disabled System.Boolean = true optionalposition: 0
public TablerInput Floating(Boolean enable = true) #
Returns: TablerInput

Render with Tabler floating label layout (form-floating). Ignored for inline label mode.

Parameters

enable System.Boolean = true optionalposition: 0
public TablerInput Flush(Boolean enable = true) #
Returns: TablerInput

Use Tabler "form-control-flush" (borderless) style.

Parameters

enable System.Boolean = true optionalposition: 0
public TablerInput Hint(String text) #
Returns: TablerInput

Adds non-error help text below the control.

Parameters

text System.String requiredposition: 0
public TablerInput Label(String text) #
Returns: TablerInput

Sets the label text displayed above the input.

Parameters

text System.String requiredposition: 0
The label text.

Returns

The current TablerInput instance.

public TablerInput Max(Double value) #
Returns: TablerInput

Set maximum value (number/date/time/range).

Parameters

value System.Double requiredposition: 0
public TablerInput MaxLength(Int32 value) #
Returns: TablerInput

Set maxlength for text-like inputs.

Parameters

value System.Int32 requiredposition: 0
public TablerInput Min(Double value) #
Returns: TablerInput

Set minimum value (number/date/time/range).

Parameters

value System.Double requiredposition: 0
public TablerInput Multiple(Boolean multiple = true) #
Returns: TablerInput

Allow multiple file selection (type=file).

Parameters

multiple System.Boolean = true optionalposition: 0
public TablerInput Pattern(String value) #
Returns: TablerInput

Set regex pattern for text-like inputs.

Parameters

value System.String requiredposition: 0
public TablerInput ReadOnly(Boolean readOnly = true) #
Returns: TablerInput

Mark input as read-only.

Parameters

readOnly System.Boolean = true optionalposition: 0
public TablerInput Required(Boolean required = true) #
Returns: TablerInput

Marks the input as required.

Parameters

required System.Boolean = true optionalposition: 0
Whether the input is required.

Returns

The current TablerInput instance.

public TablerInput Step(Double value) #
Returns: TablerInput

Set step value (number/date/time/range).

Parameters

value System.Double requiredposition: 0
public override String ToString() #
Returns: String

Generates the HTML markup for the input element and its wrapper.

public TablerInput Type(InputType type) #
Returns: TablerInput

Sets the HTML type attribute for the input element.

Parameters

type HtmlForgeX.InputType requiredposition: 0
The input type to use.

Returns

The current TablerInput instance.

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

Sets validation state and message for the input element.

Parameters

state HtmlForgeX.ValidationState requiredposition: 0
Validation state.
message System.String requiredposition: 1
Message shown below the input.

Returns

The current TablerInput instance.

public TablerInput Value(String value) #
Returns: TablerInput

Sets the default value for the input element (applies to non-textarea inputs).

Parameters

value System.String requiredposition: 0