Skip to content

IntlDatetimeEditor

Members

EDITOR_TYPE

Source code

IntlDatetimeEditor.EDITOR_TYPE

Returns the unique editor type identifier for the intl-datetime editor.

Methods

createElements

Source code

intlDatetimeEditor.createElements()

Creates the editor’s element as a native datetime-local input that shows seconds.

focus

Source code

intlDatetimeEditor.focus()

Selects all text in the input element when the editor receives focus.

getValue

Source code

intlDatetimeEditor.getValue()

Returns the editor value, canonicalizing to YYYY-MM-DDTHH:mm:ss (native input may omit seconds).

init

Source code

intlDatetimeEditor.init()

Initializes the editor and registers an afterSetTheme hook to close on theme changes.

open

Source code

intlDatetimeEditor.open()

Opens the editor and programmatically invokes the native picker via showPicker().

prepare

Source code

intlDatetimeEditor.prepare()

Prepares the editor, replacing the display value with the raw ISO source data for the native input.

setValue

Source code

intlDatetimeEditor.setValue()

Sets the editor value, normalizing to the YYYY-MM-DDTHH:mm:ss form the native input expects, and warns if the value is not a valid ISO date-time string.