For the complete documentation index, see llms.txt. This page is also available as Markdown.

New-UDDateRangePicker

Creates a new date range picker

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 [<SwitchParameter>]
        Whether to autofocus this field.

Required?                    false
Position?                    named
Default value                False
Accept pipeline input?       false
Aliases
Accept wildcard characters?  false

-Calendars

Parameter description

-ClassName

A CSS class name to apply to the date range picker.

-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)'.

-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'.

-DisabledDates <DateTime[]>

The disabled dates.

-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.

Outputs

-------------------------- EXAMPLE 1 --------------------------

Last updated

Was this helpful?