API Reference
Command
New-HtmlXCheckbox
Creates a checkbox control.
Remarks
Part of the HtmlForgeX.PowerShell DSL.
Examples
New-HtmlXCheckbox -Name "terms" -Label "I agree to the terms" -Checked
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-HtmlXCheckbox [-Checked] [-Description <string>] [-Disabled] [-Hint <string>] [-Inline] [-Label <string>] [-Name <string>] [-Required] [-ValidationMessage <string>] [-ValidationState <Valid|Invalid|Warning>] [-Value <string>] [<CommonParameters>]#Parameters
- Checked SwitchParameter
- Mark as checked.
- Description string
- Description text.
- Disabled SwitchParameter
- Mark as disabled.
- Hint string
- Hint text.
- Inline SwitchParameter
- Render inline.
- Label string
- Label text.
- Name string
- Checkbox name/id.
- Required SwitchParameter
- Mark as required.
- ValidationMessage string
- Validation message.
- ValidationState ValidationState
- Validation state. Possible values: Valid, Invalid, Warning
- Possible values:
Valid,Invalid,Warning - Value string
- Checkbox value.
Outputs
HtmlForgeX.TablerCheckbox