New-UDDateRangePicker
Synopsis
Creates a new date range picker
Syntax
New-UDDateRangePicker [[-Id] <String>] [-AutoFocus] [[-Calendars] <Int32>] [[-ClassName] <String>] [-CloseOnSelect] [[-CurrentMonthCalendarPositition] <Int32>] [[-DefaultRangePosition] <String>] [[-DesktopModeMediaQuery] <String>] [-Disabled] [-DisableDragEditing] [-DisableFuture] [-DisableHightlightToday] [-DisableOpenPicker] [-DisablePast] [-DisableWeekNumber] [[-Label] <String>] [[-MaxDate] <DateTime>] [[-MinDate] <DateTime>] [[-OnAccept] <Endpoint>] [[-OnChange] <Endpoint>] [[-OnClose] <Endpoint>] [[-OnError] <Endpoint>] [[-OnMonthChange] <Endpoint>] [[-OnOpen] <Endpoint>] [[-onRangePositionChange] <Endpoint>] [[-onSelectedSectionsChange] <Endpoint>] [[-RangePosition] <String>] [-ReduceAnimations] [[-DisabledDates] <DateTime[]>] [-showDaysOutsideCurrentMonth] [[-Sx] <Hashtable>] [[-Timezone] <String>] [[-Value] <DateTime[]>] [[-LocaleText] <Hashtable>] [[-Format] <String>] [<CommonParameters>]Description
Creates a new date range picker
Parameters
-Id
The ID of the date range picker. Defaults to a new GUID.
Required? false
Position? 1
Default value [Guid]::NewGuid()
Accept pipeline input? false
Aliases
Accept wildcard characters? false-AutoFocus
Whether to autofocus this field.
-Calendars
Parameter description
-ClassName
A CSS class name to apply to the date range picker.
-CloseOnSelect
Whether to close the picker when a date is selected.
-CurrentMonthCalendarPositition
The position of the current month calendar.
-DefaultRangePosition
The default range position. Valid values are 'start' and 'end'.
-DesktopModeMediaQuery
The media query for desktop mode. Defaults to '@media (pointer: fine)'.
-Disabled
Whether the date range picker is disabled.
-DisableDragEditing
Disables drag editing.
-DisableFuture
Disables future dates.
-DisableHightlightToday
Disables highlighting today.
-DisableOpenPicker
Disables opening the picker.
-DisablePast
Disables past dates.
-DisableWeekNumber
Disables the week number.
-Label
The label for the date range picker.
-MaxDate
The maximum date.
-MinDate
The minimum date.
-OnAccept
An endpoint to call when the date range picker is accepted. $EventData will contain the selected date range.
-OnChange
An endpoint to call when the date range picker changes. $EventData will contain the selected date range.
-OnClose
An endpoint to call when the date range picker closes. $EventData will contain the selected date range.
-OnError
An endpoint to call when an error occurs. $EventData will contain the error.
-OnMonthChange
An endpoint to call when the month changes.
-OnOpen
An endpoint to call when the date range picker opens.
-onRangePositionChange
An endpoint to call when the range position changes.
-onSelectedSectionsChange
An endpoint to call when the selected sections change.
-RangePosition
The range position. Valid values are 'start' and 'end'.
-ReduceAnimations
Reduces animations.
-DisabledDates <DateTime[]>
The disabled dates.
-showDaysOutsideCurrentMonth
Whether to show days outside the current month.
-Sx
A hashtable of theme-specific styling properties.
-Timezone
The timezone.
-Value <DateTime[]>
The value of the date range picker.
-LocaleText
The locale text for the date range picker.
-Format
The format of the dates in the date range picker.
Common parameters
This cmdlet supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable, OutBuffer, PipelineVariable, and OutVariable. For more information, see about_CommonParameters.
Outputs
Examples
Example 1
Last updated
Was this helpful?