EDateTimePicker Date time picker
Examples
Date time picker
Default times and date-time ranges
Date and time
Properties
accessibleNamestringName read by assistive technologies; provide a readable name for controls without text.
placeholderTextappendComponentComponentComponent slot for custom input append area or list end; null uses the default content. See this page’s examples for delegate context.
nullarrowControlboolAdjust time fields with up/down arrows.
truecellComponentComponentComponent slot for custom table cell or date cell; null uses the default content. See this page’s examples for delegate context.
nullclearIconintIcon used by the component.
EIcons.*
0 (no icon)
EIcons.CIRCLE_XMARKclearableboolShow a clear action; ratings may be cleared by clicking the current score again.
truedateFormatstringDate or time display format pattern.
"YYYY-MM-DD"defaultTimevarDefault time for date-time selection, as a Date or start/end time array.
nulldefaultValuevarDefault panel position when no value is selected.
nulldisabledDatevarDate disabling callback receiving a JavaScript Date and returning whether it is disabled.
nulldisabledHoursvarCallback returning disabled hours.
nulldisabledMinutesvarCallback returning disabled minutes for the selected hour.
nulldisabledSecondsvarCallback returning disabled seconds for the selected hour and minute.
nullechoModeenumDisplay mode for the input text.
TextInput.NormalTextInput.PasswordTextInput.NoEchoTextInput.PasswordEchoOnEdit
Dynamic bindingemptyValuesvarValues treated as empty; includes undefined, null and the empty string by default.
Inherited; default [undefined, null, ""]enabledboolAllow interaction; false disables the control.
trueendPlaceholderstringPlaceholder shown when the value is empty.
""fallbackPlacementsvarAlternative popup placements when the preferred position lacks space.
Array of the available placement values
["top-start", "bottom-start"]fontfontFont settings for the family, size and text style.
Common fields:
family, pixelSize, pointSize
bold, italic, weight
underline, strikeout
letterSpacing, wordSpacing
application fontformatstringDisplay format: date/time pattern, progress callback or countdown time placeholders.
"YYYY-MM-DD HH:mm:ss"formattervarFormatting callback converting a value to displayed text.
nullheightrealComponent size in pixels; may be bound to its parent layout.
implicitHeightisRangeboolEnable start/end range selection.
falsemaxDatestringSelectable date bounds in yyyy-MM-dd; an empty string imposes no bound.
""maxTimestringSelectable time bounds in HH:mm or HH:mm:ss; empty means unbounded.
""maximumLengthintMaximum allowed input characters.
32767minDatestringSelectable date bounds in yyyy-MM-dd; an empty string imposes no bound.
""minTimestringSelectable time bounds in HH:mm or HH:mm:ss; empty means unbounded.
""nextMonthIconintIcon used by the component.
EIcons.*
0 (no icon)
EIcons.CHEVRON_RIGHTnextYearIconintIcon used by the component.
EIcons.*
0 (no icon)
EIcons.CHEVRONS_RIGHTparservarInput parser converting displayed text to the underlying value.
nullpasswordVisibleboolDisplay the password as plain text.
falseplaceholderTextstringPlaceholder shown when the value is empty.
Localized textplacementstringPicker panel position relative to the input.
"top" / "top-start""top-end" / "bottom""bottom-start" / "bottom-end""left" / "left-start""left-end" / "right""right-start" / "right-end"
"bottom-start"prefixComponentComponentComponent slot for custom prefix; null uses the default content. See this page’s examples for delegate context.
nullprefixIconintIcon used by the component.
EIcons.*
0 (no icon)
EIcons.CALENDARprependComponentComponentComponent slot for custom input prepend area; null uses the default content. See this page’s examples for delegate context.
nullprevMonthIconintIcon used by the component.
EIcons.*
0 (no icon)
EIcons.CHEVRON_LEFTprevYearIconintIcon used by the component.
EIcons.*
0 (no icon)
EIcons.CHEVRONS_LEFTrangeSeparatorstringSeparator text between range values.
" — "readOnlyboolPrevent user editing or rating while allowing programmatic value changes.
trueshortcutsvarArray of date shortcut data.
Fields:
text, value
[]showConfirmboolShow the confirm button.
trueshowNowboolShow an action to select the current time.
trueshowPasswordboolEnable password entry and visibility switching.
falseshowWeekNumberboolShow week numbers.
falseshowWordLimitboolShow the current character count and length limit.
falsesinglePanelboolShow a single date panel for range selection.
falsesizeintControl size; inherits the nearest EConfigProvider by default.
EStyle.SmallEStyle.MediumEStyle.Large
Inherited; EStyle.Medium by defaultstartPlaceholderstringPlaceholder shown when the value is empty.
""styleTypeintSemantic color style.
EStyle.DefaultEStyle.PrimaryEStyle.SuccessEStyle.InfoEStyle.WarningEStyle.Danger
EStyle.PrimarysuffixComponentComponentComponent slot for custom suffix; null uses the default content. See this page’s examples for delegate context.
nullsuffixIconintIcon used by the component.
EIcons.*
0 (no icon)
0textstringDisplayed text.
Show default value
Array.isArray(value) ? value.map(displayValue).join(rangeSeparator) : displayValue(value)textColorcolorText color.
Dynamic bindingtimeFormatstringDate or time display format pattern.
"HH:mm:ss"unlinkPanelsboolAllow range date panels to navigate independently.
falsevalidateEventboolRequest enclosing-form validation when the value changes.
truevalidationMessagestringValidation message or externally supplied error text.
""validationStateintInput validation state.
EValidationState.NoneEValidationState.SuccessEValidationState.WarningEValidationState.Error
EValidationState.NonevaluevarDate-time string, or start/end array in range mode; uses the component default when valueFormat is empty.
""valueFormatstringDate/time format of the external value; empty uses the component default.
"YYYY-MM-DD HH:mm:ss"valueOnClearvarValue after clearing, or a function returning it; inherits configuration by default.
Inherited; default undefinedvisibleboolWhether the component is visible.
truewidthrealComponent size in pixels; may be bound to its parent layout.
implicitWidthcalendarLocalevarRead onlyLocale used for date/time parsing, formatting and panels.
Computed at runtimeendPanelvarRead onlyStart or end date picker panel item.
Computed at runtimehasValidationErrorboolRead onlyWhether validation state is Error.
Computed at runtimepanelvarRead onlyStart or end date picker panel item.
Computed at runtimepopupvarRead onlyReference to the internal menu, popup or tooltip.
Computed at runtimewordCountintRead onlyCurrent input character count.
Computed at runtimeshowPasswordStrengthboolShow strength and rule checks while a password input is focused.
falsepasswordRulesvarPassword rules with label and minLength or pattern.
Show default value
[ {label: ELocale.texts.PasswordLength, minLength: 8}, {label: ELocale.texts.PasswordUppercase, pattern: /[A-Z]/}, {label: ELocale.texts.PasswordLowercase, pattern: /[a-z]/}, {label: ELocale.texts.PasswordNumber, pattern: /[0-9]/}, {label: ELocale.texts.PasswordSymbol, pattern: /[^A-Za-z0-9]/} ]passwordStrengthrealRead onlyFraction of passed password rules, from 0 to 1.
Show default value
passwordRequirements.length ? passwordRequirements.filter(function(rule) { return rule.passed }).length / passwordRequirements.length : 0passwordRequirementsvarRead onlyRule results with label and passed fields.
Show default value
Array.isArray(passwordRules) ? passwordRules.map(function(rule) { let passed = false try { if (rule && rule.minLength !== undefined) passed = text.length >= Number(rule.minLength) else if (rule && rule.pattern) { const expression = new RegExp(rule.pattern) passed = expression.test(text) } } catch (error) { passed = false } return {label: rule && rule.label ? String(rule.label) : "", passed: passed} }) : []Signals
picked(var value)Emitted after choosing a value; value is the chosen value.
changed(var value)Emitted when the selection changes; value is the new value.
calendarChanged(var value)Emitted when the calendar selection changes during picking; value is the current selection.
inputRejected(string text)Emitted when input cannot be converted to a valid value; text is the rejected input.
popupVisibleChanged(bool visible)Emitted when the picker panel opens or closes; visible is its visibility.
viewChanged(var date, string mode)Emitted when the displayed date or view changes; date is the displayed date and mode is the view mode.
Methods
close()Close the component panel or popup.
clearValue()Clear the current date selection.
selectDateTime(input)Select the date and time specified by input.
confirm()Confirm and commit the current selection.
selectDateTimeRange(start, end)Select the date-time range from start to end.
commitInput(input)Commit the input text; invalid input preserves the previous value and emits inputRejected.
open()Open the component panel or popup.