EDatePicker Date picker
Examples
Date picker
Formatted input and two-panel ranges
Date selection
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.
nullautomaticDropdownboolOpen the date panel automatically on input focus.
falsecellComponentComponentComponent 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.
truedefaultTimevarDefault 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.
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.
""formattervarFormatting callback converting a value to displayed text.
nullheightrealComponent size in pixels; may be bound to its parent layout.
implicitHeightmaxDatestringSelectable date bounds in yyyy-MM-dd; an empty string imposes no bound.
""maximumLengthintMaximum allowed input characters.
32767minDatestringSelectable date bounds in yyyy-MM-dd; an empty string imposes no bound.
""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.
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(isRange ? rangeSeparator : ", ") : displayValue(value)textColorcolorText color.
Dynamic bindingtypestringDate selection unit and single, multiple or range selection mode.
"date" / "dates""week" / "month""months" / "year""years" / "quarter""quarters" / "daterange""monthrange" / "yearrange""quarterrange"
"date"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.NonevaluevarCurrent value; read or write through property bindings, with arrays for multiple or range selection.
""valueFormatstringDate/time format of the external value; empty uses the component default.
""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 runtimecanonicalFormatstringRead onlyActual date/time format used to parse and serialize value.
Computed at runtimedisplayFormatstringRead onlyResolved date/time display format.
Computed at runtimeendPanelvarRead onlyStart or end date picker panel item.
Computed at runtimehasValidationErrorboolRead onlyWhether validation state is Error.
Computed at runtimeisRangeboolRead onlyEnable start/end range selection.
Computed at runtimemultipleboolRead onlyAllow multiple selection.
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.
commitInput(input)Commit the input text; invalid input preserves the previous value and emits inputRejected.
commitDate(input)Commit the given date as the current selection.
open()Open the component panel or popup.