API Reference
Class
FormLayoutOptions
Options/configuration builder for a TablerForm layout.
Inheritance
- Object
- FormLayoutOptions
Constructors
public FormLayoutOptions() #Methods
public FormLayoutOptions Actions(FormActionsPlacement placement) #Returns:
FormLayoutOptionsSet where the actions bar is rendered.
Parameters
- placement HtmlForgeX.FormActionsPlacement
public FormLayoutOptions Grid(Int32 columns = 2) #Returns:
FormLayoutOptionsUse grid layout with the specified number of columns.
Parameters
- columns System.Int32 = 2
public FormLayoutOptions Horizontal() #Returns:
FormLayoutOptionsUse horizontal layout (inline labels to the left).
public FormLayoutOptions InlineLabelWidth(Int32 cols) #Returns:
FormLayoutOptionsSet inline label width (Bootstrap columns, 1..12).
Parameters
- cols System.Int32
public FormLayoutOptions Labels(LabelMode mode) #Returns:
FormLayoutOptionsSet label placement strategy.
Parameters
- mode HtmlForgeX.LabelMode
public FormLayoutOptions Stack() #Returns:
FormLayoutOptionsUse stacked layout (labels above controls).
Inherited Methods
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).