HtmlForgeX

API Reference

Class

TablerForm

Namespace HtmlForgeX
Assembly HtmlForgeX
Base Element

Form container that provides fluent APIs for building Tabler forms.

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

Methods

public TablerForm Action(String action) #
Returns: TablerForm

Sets the action attribute on the form.

Parameters

action System.String requiredposition: 0
public TablerInput AntiForgery(String token) #
Returns: TablerInput

Adds a CSRF hidden input (convenience alias for String) with name="csrf").

Parameters

token System.String requiredposition: 0
public TablerForm Buttons(Action<TablerButtonBar> config) #
Returns: TablerForm

Adds a horizontal button bar with proper spacing.

Parameters

config System.Action{HtmlForgeX.TablerButtonBar} requiredposition: 0
public TablerCheckbox Checkbox(String name, Action<TablerCheckbox> config = null) #
Returns: TablerCheckbox

Adds a checkbox element to the form.

Parameters

name System.String requiredposition: 0
Name and identifier of the checkbox.
config System.Action{HtmlForgeX.TablerCheckbox} = null optionalposition: 1
Optional configuration callback.

Returns

The created TablerCheckbox.

public TablerCheckboxGroup CheckboxGroup(String name, Action<TablerCheckboxGroup> config = null) #
Returns: TablerCheckboxGroup

Adds a checkbox group to the form.

Parameters

name System.String requiredposition: 0
Name and identifier of the checkbox group.
config System.Action{HtmlForgeX.TablerCheckboxGroup} = null optionalposition: 1
Optional configuration callback.

Returns

The created TablerCheckboxGroup.

public TablerCopyInput CopyInput(Action<TablerCopyInput> config = null) #
Returns: TablerCopyInput

Adds a read-only copy input (clipboard) control.

Parameters

config System.Action{HtmlForgeX.TablerCopyInput} = null optionalposition: 0
public TablerDropzone Dropzone(Action<TablerDropzone> config = null) #
Returns: TablerDropzone

Adds a dropzone file picker control.

Parameters

config System.Action{HtmlForgeX.TablerDropzone} = null optionalposition: 0
public TablerForm Enctype(String enctype) #
Returns: TablerForm

Sets the enctype attribute on the form (e.g., "multipart/form-data"). Required for file uploads.

Parameters

enctype System.String requiredposition: 0
GetAuxiliaryChildren() #

Returns child sections so library registration can traverse nested elements.

public TablerInput Hidden(String name, String value) #
Returns: TablerInput

Adds a hidden input element with a fixed value. Renders as <input type="hidden" name="..." id="..." value="..." />.

Parameters

name System.String requiredposition: 0
value System.String requiredposition: 1
public TablerInput Input(String name, Action<TablerInput> config = null) #
Returns: TablerInput

Adds a standard input element to the form.

Parameters

name System.String requiredposition: 0
Name and identifier of the input.
config System.Action{HtmlForgeX.TablerInput} = null optionalposition: 1
Optional configuration callback.

Returns

The created TablerInput.

public TablerInputGroup InputGroup(Action<TablerInputGroup> config) #
Returns: TablerInputGroup

Adds an input-group composed of optional left/right addons and a central control.

Parameters

config System.Action{HtmlForgeX.TablerInputGroup} requiredposition: 0
public TablerInputMask InputMask(String name, Action<TablerInputMask> config = null) #
Returns: TablerInputMask

Adds an input mask element to the form.

Parameters

name System.String requiredposition: 0
Name and identifier of the mask.
config System.Action{HtmlForgeX.TablerInputMask} = null optionalposition: 1
Optional configuration callback.

Returns

The created TablerInputMask.

public TablerForm Layout(Action<FormLayoutOptions> configure) #
Returns: TablerForm

Configure layout, label mode and actions placement for this form. Defaults: Stack + Labels.Top + Actions.Bottom.

Parameters

configure System.Action{HtmlForgeX.FormLayoutOptions} requiredposition: 0
public TablerForm Method(String method) #
Returns: TablerForm

Sets the HTTP method attribute on the form (e.g., POST, GET).

Parameters

method System.String requiredposition: 0
public TablerForm Multipart(Boolean enable = true) #
Returns: TablerForm

Enables multipart/form-data encoding, required for file uploads.

Parameters

enable System.Boolean = true optionalposition: 0
public TablerRadio Radio(String name, String value, Action<TablerRadio> config = null) #
Returns: TablerRadio

Adds a radio button element to the form.

Parameters

name System.String requiredposition: 0
Name of the radio button group.
value System.String requiredposition: 1
Value of this radio button.
config System.Action{HtmlForgeX.TablerRadio} = null optionalposition: 2
Optional configuration callback.

Returns

The created TablerRadio.

public TablerRadioGroup RadioGroup(String name, Action<TablerRadioGroup> config = null) #
Returns: TablerRadioGroup

Adds a radio button group to the form.

Parameters

name System.String requiredposition: 0
Name and identifier of the radio group.
config System.Action{HtmlForgeX.TablerRadioGroup} = null optionalposition: 1
Optional configuration callback.

Returns

The created TablerRadioGroup.

RegisterLibraries() #

Registers required styles used by form helpers.

public TablerForm Section(String title, Action<TablerFormSection> config) #
Returns: TablerForm

Adds a semantic section with rows/columns.

Parameters

title System.String requiredposition: 0
config System.Action{HtmlForgeX.TablerFormSection} requiredposition: 1
public TablerSelect Select(String name, Action<TablerSelect> config = null) #
Returns: TablerSelect

Adds a select element to the form.

Parameters

name System.String requiredposition: 0
Name and identifier of the select.
config System.Action{HtmlForgeX.TablerSelect} = null optionalposition: 1
Optional configuration callback.

Returns

The created TablerSelect.

public TablerForm Settings(Action<TablerFormSettings> configure) #
Returns: TablerForm

Settings sub‑builder to keep the root surface tidy.

Parameters

configure System.Action{HtmlForgeX.TablerFormSettings} requiredposition: 0
public TablerSignaturePad SignaturePad(String name, Action<TablerSignaturePad> config = null) #
Returns: TablerSignaturePad

Adds a signature pad (canvas + hidden input) to the form.

Parameters

name System.String requiredposition: 0
config System.Action{HtmlForgeX.TablerSignaturePad} = null optionalposition: 1
public TablerStarRating StarRating(String name, Action<TablerStarRating> config = null) #
Returns: TablerStarRating

Adds a star rating element to the form.

Parameters

name System.String requiredposition: 0
Name and identifier of the rating.
config System.Action{HtmlForgeX.TablerStarRating} = null optionalposition: 1
Optional configuration callback.

Returns

The created TablerStarRating.

public TablerSwitch Switch(String name, Action<TablerSwitch> config = null) #
Returns: TablerSwitch

Adds a toggle switch element to the form.

Parameters

name System.String requiredposition: 0
Name and identifier of the switch.
config System.Action{HtmlForgeX.TablerSwitch} = null optionalposition: 1
Optional configuration callback.

Returns

The created TablerSwitch.

public TablerTextarea Textarea(String name, Action<TablerTextarea> config = null) #
Returns: TablerTextarea

Adds a textarea element to the form.

Parameters

name System.String requiredposition: 0
Name and identifier of the textarea.
config System.Action{HtmlForgeX.TablerTextarea} = null optionalposition: 1
Optional configuration callback.

Returns

The created TablerTextarea.

public TablerTokenInput TokenInput(Action<TablerTokenInput> config = null) #
Returns: TablerTokenInput

Adds a token input (reveal/copy) control.

Parameters

config System.Action{HtmlForgeX.TablerTokenInput} = null optionalposition: 0
public override String ToString() #
Returns: String

Generates the HTML markup for the form and its child elements.

ValidationSummary 2 overloads
public TablerValidationSummary ValidationSummary(Action<TablerValidationSummary> config = null) #
Returns: TablerValidationSummary

Adds a server-driven validation summary (Tabler alert with a list of errors).

Parameters

config System.Action{HtmlForgeX.TablerValidationSummary} = null optionalposition: 0
public TablerValidationSummary ValidationSummary(IEnumerable<String> messages, String title = null) #
Returns: TablerValidationSummary

Adds a server-driven validation summary from a list of messages.

Parameters

messages System.Collections.Generic.IEnumerable{System.String} requiredposition: 0
title System.String = null optionalposition: 1
public TablerWysiwygEditor Wysiwyg(String name, Action<TablerWysiwygEditor> config = null) #
Returns: TablerWysiwygEditor

Adds a rich text editor element to the form.

Parameters

name System.String requiredposition: 0
Name and identifier of the editor.
config System.Action{HtmlForgeX.TablerWysiwygEditor} = null optionalposition: 1
Optional configuration callback.

Returns

The created TablerWysiwygEditor.