HtmlForgeX

API Reference

Command

New-HtmlXInputGroup

Namespace HtmlForgeX.PowerShell
Outputs
HtmlForgeX.TablerInputGroup

Creates an input-group container with optional addons and a central control.

Remarks

Use New-HtmlXInputGroupTextAddon, New-HtmlXInputGroupIconAddon, and input-group control cmdlets inside the scriptblock.

Examples

Authored help example

Example 1: Input group with prefix text and a right-side button.


New-HtmlXInputGroup -Label "Username" {
    New-HtmlXInputGroupTextAddon -Text "@"
    New-HtmlXInputGroupInput -Name "username" -Placeholder "john.doe"
    New-HtmlXInputGroupButtonAddon -Text "Check" -Right -Variant Secondary
}
        

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-HtmlXInputGroup [-Content <ScriptBlock>] [-Label <string>] [-Size <Default|Small|Large>] [<CommonParameters>]
#

Parameters

Content ScriptBlock optionalposition: 0pipeline: false
Scriptblock that adds addons and the central control.
Label string optionalposition: namedpipeline: false
Optional label displayed above the input group.
Size InputGroupSize optionalposition: namedpipeline: falsevalues: 3
Optional input-group size preset. Possible values: Default, Small, Large
Possible values: Default, Small, Large

Outputs

HtmlForgeX.TablerInputGroup