EDatePickerPanel Date picker panel
Examples
Date picker panel
Keyboard navigation, range preview and custom cells
Standalone panel
Properties
calendarLocalevarLocale used for date/time parsing, formatting and panels.
Show default value
Qt.locale(PickerFormats.localeName( EControlConfig.valueFor(control, "locale", ELocale.language), ELocale.language ))cellComponentComponentComponent slot for custom table cell or date cell; null uses the default content. See this page’s examples for delegate context.
nulldisabledDatevarDate disabling callback receiving a JavaScript Date and returning whether it is disabled.
nullenabledboolAllow interaction; false disables the control.
truefixedViewboolLock the date panel view instead of switching levels through its title.
falsefocusedDatedateDate focused by keyboard navigation in the date panel.
new Date(year, month, 1)heightrealComponent size in pixels; may be bound to its parent layout.
implicitHeighthoverValuestringHovered date or rating used for preview.
""maxDatestringSelectable date bounds in yyyy-MM-dd; an empty string imposes no bound.
""minDatestringSelectable date bounds in yyyy-MM-dd; an empty string imposes no bound.
""monthintDisplayed month from 1 to 12.
new Date().getMonth()nextMonthIconintIcon used by the component.
EIcons.*
0 (no icon)
EIcons.CHEVRON_RIGHTnextYearIconintIcon used by the component.
EIcons.*
0 (no icon)
EIcons.CHEVRONS_RIGHTprevMonthIconintIcon used by the component.
EIcons.*
0 (no icon)
EIcons.CHEVRON_LEFTprevYearIconintIcon used by the component.
EIcons.*
0 (no icon)
EIcons.CHEVRONS_LEFTrangeStartstringStart of the date range being selected.
""showConfirmboolShow the confirm button.
falseshowWeekNumberboolShow week numbers.
falsesizeintControl size; inherits the nearest EConfigProvider by default.
EStyle.SmallEStyle.MediumEStyle.Large
Inherited; EStyle.Medium by defaulttypestringDate selection unit and single, multiple or range selection mode.
"date" / "dates""week" / "month""months" / "year""years" / "quarter""quarters" / "daterange""monthrange" / "yearrange""quarterrange"
"date"valuevarSelected date in yyyy-MM-dd; month, year or range panels use the corresponding format.
""viewModestringDate level currently displayed in the panel.
"date" / "month""year"
Show default value
type.indexOf("year") === 0 ? "year" : type.indexOf("month") === 0 || type.indexOf("quarter") === 0 ? "month" : "date"visibleboolWhether the component is visible.
truewidthrealComponent size in pixels; may be bound to its parent layout.
implicitWidthyearintDisplayed year.
new Date().getFullYear()periodViewboolRead onlyWhether the date panel shows month or year periods.
Computed at runtimeselectedDatevarRead onlyCurrent selected Date parsed by the date panel.
Computed at runtimeSignals
picked(var value)Emitted after choosing a value; value is the chosen value.
calendarChanged(var value)Emitted when the calendar selection changes; value is the current selection.
panelChanged(var date, string mode)Emitted when the calendar view changes; date is the displayed date and mode is the view mode.
Methods
focusCalendar()Move keyboard focus to the calendar.
setView(date)Change the displayed calendar position to date.
shiftMonth(offset)Shift the displayed calendar by offset months; negative values move backward.
selectDate(date)Select the date specified by input.