New-UDTimePicker
Creates a time picker.
Synopsis
Syntax
New-UDTimePicker [[-Id] <String>] [[-Label] <String>] [[-OnChange] <Endpoint>] [[-Value] <DateTime>] [[-Locale] <String>] [[-ClassName] <String>] [-DisableAmPm] [[-TimeZone] <Object>] [<CommonParameters>]Description
Parameters
-Id
Required? false
Position? 1
Default value [Guid]::NewGuid().ToString()
Accept pipeline input? false
Aliases
Accept wildcard characters? false-Label
-OnChange
-Value
-Locale
-ClassName
-TimeZone The time zone to use for the time picker. This should be an IANA time zone string.Required? falsePosition? 7Default valueAccept pipeline input? falseAliasesAccept wildcard characters? false <CommonParameters> This cmdlet supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable, OutBuffer, PipelineVariable, and OutVariable. For more information, see about_CommonParameters (https://go.microsoft.com/fwlink/?LinkID=113216).Outputs-------------------------- EXAMPLE 1 --------------------------PS >New-UDTimePicker -Id 'timepicker1'Basic Time Picker|Creates a basic time picker.-------------------------- EXAMPLE 2 --------------------------PS >New-UDTimePicker -Id 'timepicker2' -OnChange {PS > Show-UDToast -Message "Time changed to $($EventData)"PS > }OnChange|Creates a time picker with an OnChange script block.-------------------------- EXAMPLE 3 --------------------------PS >New-UDTimePicker -Id 'timepicker3' -Value "12:00"Value|Creates a time picker with a value.-------------------------- EXAMPLE 4 --------------------------PS >New-UDTimePicker -Id 'timepicker4' -Locale "de"Locale|Creates a time picker with a German locale.-------------------------- EXAMPLE 5 --------------------------PS >New-UDTimePicker -Id 'timepicker5' -DisableAmPmDisableAmPm|Creates a time picker with 24-hour time.-------------------------- EXAMPLE 6 --------------------------PS >New-UDTimePicker -Id 'timepicker6' -TimeZone "America/New_York"TimeZone|Creates a time picker with a specific time zone.
Last updated
Was this helpful?