HtmlForgeX

API Reference

Class

TablerTextarea

Namespace HtmlForgeX
Assembly HtmlForgeX
Base Element
Implements

Generic textarea 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.

Returned or exposed by

Accepted by parameters

Constructors

public TablerTextarea(String name) #

Initializes or configures TablerTextarea.

Parameters

name System.String requiredposition: 0

Methods

public TablerTextarea AutoResize(Boolean autoResize = true) #
Returns: TablerTextarea

Enables auto-resize functionality for the textarea.

Parameters

autoResize System.Boolean = true optionalposition: 0
Whether to enable auto-resize.

Returns

The current TablerTextarea instance.

public TablerTextarea Cols(Int32 cols) #
Returns: TablerTextarea

Sets the number of visible columns for the textarea.

Parameters

cols System.Int32 requiredposition: 0
The number of columns.

Returns

The current TablerTextarea instance.

public TablerTextarea Floating(Boolean enable = true) #
Returns: TablerTextarea

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

Parameters

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

Adds non-error help text below the control.

Parameters

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

Sets the label text displayed above the textarea.

Parameters

text System.String requiredposition: 0
The label text.

Returns

The current TablerTextarea instance.

RegisterLibraries() #

Register helper library for auto-resize when enabled.

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

Marks the textarea as required.

Parameters

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

Returns

The current TablerTextarea instance.

public TablerTextarea Rows(Int32 rows) #
Returns: TablerTextarea

Sets the number of visible rows for the textarea.

Parameters

rows System.Int32 requiredposition: 0
The number of rows.

Returns

The current TablerTextarea instance.

public override String ToString() #
Returns: String

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

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

Sets validation state and message for the textarea element.

Parameters

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

Returns

The current TablerTextarea instance.

public TablerTextarea Value(String value) #
Returns: TablerTextarea

Sets the default value for the textarea.

Parameters

value System.String requiredposition: 0
The default value.

Returns

The current TablerTextarea instance.