HtmlForgeX

API Reference

Command

New-HtmlXSelect

Namespace HtmlForgeX.PowerShell
Outputs
HtmlForgeX.TablerSelect

Creates a select control.

Remarks

Part of the HtmlForgeX.PowerShell DSL.

Examples

Imported script example

New-HtmlXSelect -Name "role" -Label "Role" -Options @("Admin", "Operator", "Viewer") -Selected "Operator" -Searchable
        

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-HtmlXSelect [-Floating] [-Hint <string>] [-Label <string>] [-Multiple] [-Name <string>] [-OptionMap <IDictionary>] [-Options <string[]>] [-Required] [-Searchable] [-Selected <string>] [-SelectedMany <string[]>] [-TagsMode] [-ValidationMessage <string>] [-ValidationState <Valid|Invalid|Warning>] [<CommonParameters>]
#

Parameters

Floating SwitchParameter optionalposition: namedpipeline: false
Floating label layout.
Hint string optionalposition: namedpipeline: false
Hint text.
Label string optionalposition: namedpipeline: false
Label text.
Multiple SwitchParameter optionalposition: namedpipeline: false
Enable multiple selection.
Name string optionalposition: namedpipeline: false
Select name/id.
OptionMap IDictionary optionalposition: namedpipeline: false
Options provided as a value-to-label map.
Options string[] optionalposition: namedpipeline: false
Options provided as a string array (value and label are the same).
Required SwitchParameter optionalposition: namedpipeline: false
Mark select as required.
Searchable SwitchParameter optionalposition: namedpipeline: false
Enable client-side search.
Selected string optionalposition: namedpipeline: false
Selected value for single-select.
SelectedMany string[] optionalposition: namedpipeline: false
Selected values for multi-select.
TagsMode SwitchParameter optionalposition: namedpipeline: false
Enable tags mode.
ValidationMessage string optionalposition: namedpipeline: false
Validation message.
ValidationState ValidationState optionalposition: namedpipeline: falsevalues: 3
Validation state. Possible values: Valid, Invalid, Warning
Possible values: Valid, Invalid, Warning

Outputs

HtmlForgeX.TablerSelect