HtmlForgeX

API Reference

Class

FormLayoutOptions

Namespace HtmlForgeX
Assembly HtmlForgeX
Modifiers sealed

Options/configuration builder for a TablerForm layout.

Inheritance

  • Object
  • FormLayoutOptions

Constructors

Methods

public FormLayoutOptions Actions(FormActionsPlacement placement) #
Returns: FormLayoutOptions

Set where the actions bar is rendered.

Parameters

placement HtmlForgeX.FormActionsPlacement requiredposition: 0
public FormLayoutOptions Grid(Int32 columns = 2) #
Returns: FormLayoutOptions

Use grid layout with the specified number of columns.

Parameters

columns System.Int32 = 2 optionalposition: 0
public FormLayoutOptions Horizontal() #
Returns: FormLayoutOptions

Use horizontal layout (inline labels to the left).

public FormLayoutOptions InlineLabelWidth(Int32 cols) #
Returns: FormLayoutOptions

Set inline label width (Bootstrap columns, 1..12).

Parameters

cols System.Int32 requiredposition: 0
public FormLayoutOptions Labels(LabelMode mode) #
Returns: FormLayoutOptions

Set label placement strategy.

Parameters

mode HtmlForgeX.LabelMode requiredposition: 0
public FormLayoutOptions Stack() #
Returns: FormLayoutOptions

Use stacked layout (labels above controls).

Properties

public FormLayoutMode Mode { get; set; } #

Current layout mode.

public Int32 Columns { get; set; } #

Number of columns when Mode is Grid.

public LabelMode LabelsMode { get; set; } #

Label placement strategy.

public FormActionsPlacement ActionsPlacement { get; set; } #

Placement of the form action buttons.

public Int32 InlineLabelCols { get; set; } #

Bootstrap column width for inline labels (when LabelsMode is Inline).