HtmlForgeX

API Reference

Command

New-HtmlXForm

Namespace HtmlForgeX.PowerShell
Outputs
HtmlForgeX.TablerForm

Creates a Tabler form container.

Remarks

Part of the HtmlForgeX.PowerShell DSL.

Examples

Imported script example

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 optionalposition: 0pipeline: false
Scriptblock that emits form controls.
Action string optionalposition: namedpipeline: false
Action URL for the form.
Actions FormActionsPlacement optionalposition: namedpipeline: falsevalues: 3
Placement of the actions bar. Possible values: Bottom, Top, Both
Possible values: Bottom, Top, Both
Enctype string optionalposition: namedpipeline: false
Enctype attribute (e.g., multipart/form-data).
GridColumns int optionalposition: namedpipeline: false
Number of columns when using grid layout.
InlineLabelWidth int optionalposition: namedpipeline: false
Inline label width (Bootstrap columns).
Labels LabelMode optionalposition: namedpipeline: falsevalues: 3
Label placement mode. Possible values: Top, Inline, Hidden
Possible values: Top, Inline, Hidden
LayoutMode FormLayoutMode optionalposition: namedpipeline: falsevalues: 3
Layout mode for the form. Possible values: Stack, Horizontal, Grid
Possible values: Stack, Horizontal, Grid
Method string optionalposition: namedpipeline: false
HTTP method attribute for the form.
Multipart SwitchParameter optionalposition: namedpipeline: false
Enable multipart/form-data encoding.
WrapControls bool optionalposition: namedpipeline: false
Wrap loose controls in a vertical stack.

Outputs

HtmlForgeX.TablerForm