API Reference
Command
New-HtmlXForm
Creates a Tabler form container.
Remarks
Part of the HtmlForgeX.PowerShell DSL.
Examples
New-HtmlXForm -LayoutMode Stack -Labels Top {
New-HtmlXForm -LayoutMode Grid -GridColumns 2 {
Common Parameters
This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.
For more information, see about_CommonParameters.
Syntax
New-HtmlXForm [-Content <ScriptBlock>] [-Action <string>] [-Actions <Bottom|Top|Both>] [-Enctype <string>] [-GridColumns <int>] [-InlineLabelWidth <int>] [-Labels <Top|Inline|Hidden>] [-LayoutMode <Stack|Horizontal|Grid>] [-Method <string>] [-Multipart] [-WrapControls <bool>] [<CommonParameters>]#Parameters
- Content ScriptBlock
- Scriptblock that emits form controls.
- Action string
- Action URL for the form.
- Actions FormActionsPlacement
- Placement of the actions bar. Possible values: Bottom, Top, Both
- Possible values:
Bottom,Top,Both - Enctype string
- Enctype attribute (e.g., multipart/form-data).
- GridColumns int
- Number of columns when using grid layout.
- InlineLabelWidth int
- Inline label width (Bootstrap columns).
- Labels LabelMode
- Label placement mode. Possible values: Top, Inline, Hidden
- Possible values:
Top,Inline,Hidden - LayoutMode FormLayoutMode
- Layout mode for the form. Possible values: Stack, Horizontal, Grid
- Possible values:
Stack,Horizontal,Grid - Method string
- HTTP method attribute for the form.
- Multipart SwitchParameter
- Enable multipart/form-data encoding.
- WrapControls bool
- Wrap loose controls in a vertical stack.
Outputs
HtmlForgeX.TablerForm