ETimePicker Time picker
Examples
Time picker
Disabled time choices and range roles
Time 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.
nullarrowControlboolAdjust time fields with up/down arrows.
trueclearIconintIcon used by the component.
EIcons.*
0 (no icon)
EIcons.CIRCLE_XMARKclearableboolShow a clear action; ratings may be cleared by clicking the current score again.
truecomparingDatevarDate at the other range endpoint used for comparison.
nulldefaultValuevarDefault panel position when no value is selected.
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.
""formattervarFormatting callback converting a value to displayed text.
nullheightrealComponent size in pixels; may be bound to its parent layout.
implicitHeightisRangeboolEnable start/end range selection.
falsemaxTimestringSelectable time bounds in HH:mm or HH:mm:ss; empty means unbounded.
""maximumLengthintMaximum allowed input characters.
32767minTimestringSelectable time bounds in HH:mm or HH:mm:ss; empty means unbounded.
""parservarInput 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.CLOCKprependComponentComponentComponent slot for custom input prepend area; null uses the default content. See this page’s examples for delegate context.
nullrangeSeparatorstringSeparator text between range values.
" — "readOnlyboolPrevent user editing or rating while allowing programmatic value changes.
truerolestringRole of this input in a time range.
"" / "start""end"
""saveOnBlurboolCommit valid time input on blur.
falseshowPasswordboolEnable password entry and visibility switching.
falseshowSecondsboolShow seconds selection.
trueshowWordLimitboolShow the current character count and length limit.
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 bindingvalidateEventboolRequest enclosing-form validation when the value changes.
truevalidationMessagestringValidation message or externally supplied error text.
""validationStateintInput validation state.
EValidationState.NoneEValidationState.SuccessEValidationState.WarningEValidationState.Error
EValidationState.NonevaluevarSelected time string; TimePicker range mode uses a start/end array, with format set by valueFormat.
""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 runtimedraftValidboolRead onlyWhether the current time draft is valid.
Computed at runtimehasValidationErrorboolRead onlyWhether validation state is Error.
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.
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.
Methods
close()Close the component panel or popup.
clearValue()Clear the current date selection.
selectTime(time)Select time after checking the allowed time constraints.
selectRange(start, end)Select the time range from start to end.
open()Open the component panel or popup.
commitInput(input)Commit the input text; invalid input preserves the previous value and emits inputRejected.