Select
Select component for Universal Dashboard
Last updated
Select component for Universal Dashboard
Last updated
Select components are used for collecting user provided information from a list of options.
Create a simple select with multiple options.
Create a select with groups of selections.
Execute a PowerShell event handler when the value of the select is changed.
Retrieve the value of the select from another component.
New-UDSelect
Name | Type | Description | Required |
Id | String | The ID of the component. It defaults to a random GUID. | false |
Option | ScriptBlock | Options to include in this select. This can be either New-UDSelectOption or New-UDSelectGroup. | false |
Label | String | The label to show with the select. | false |
OnChange | Endpoint | A script block that is executed when the script changes. $EventData will be an array of the selected values. | false |
DefaultValue | String | The default selected value. | false |
Disabled | SwitchParameter | Whether this select is disabled. | false |
Multiple | SwitchParameter | Whether you can select multiple values. | false |