HtmlForgeX

API Reference

Class

HtmlForm

Namespace HtmlForgeX
Assembly HtmlForgeX
Base Element
Modifiers sealed

Minimal, generic HTML <form> element for small actions and inline forms. Unlike TablerForm, this does not render a card wrapper.

Inheritance

Constructors

Methods

public HtmlForm Action(String action) #
Returns: HtmlForm

Sets the action URL for the form.

Parameters

action System.String requiredposition: 0
public HtmlForm Attribute(String name, String value) #
Returns: HtmlForm
EditorBrowsable(2)

Adds an arbitrary attribute to the underlying form element. Intended for advanced scenarios (e.g. custom data attributes).

Parameters

name System.String requiredposition: 0
value System.String requiredposition: 1
public HtmlForm Class(String className) #
Returns: HtmlForm

Adds a CSS class to the form element.

Parameters

className System.String requiredposition: 0
public HtmlForm Enctype(String enctype) #
Returns: HtmlForm

Sets the enctype attribute for the form.

Parameters

enctype System.String requiredposition: 0
public HtmlForm Method(String method) #
Returns: HtmlForm

Sets the HTTP method attribute for the form.

Parameters

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

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

Parameters

enable System.Boolean = true optionalposition: 0
public HtmlForm NoValidate(Boolean enable = true) #
Returns: HtmlForm

Sets the novalidate attribute for the form.

Parameters

enable System.Boolean = true optionalposition: 0
public HtmlForm Target(String target) #
Returns: HtmlForm

Sets the target attribute for the form.

Parameters

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