Skip to content

TimeEditor

Members

EDITOR_TYPE

Source code

TimeEditor.EDITOR_TYPE

Returns the unique editor type identifier for the time editor.

Methods

createElements

Source code

timeEditor.createElements()

Creates the editor’s textarea element as a native time input.

focus

Source code

timeEditor.focus()

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

init

Source code

timeEditor.init()

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

open

Source code

timeEditor.open()

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

setValue

Source code

timeEditor.setValue()

Sets the editor value and warns if the value does not match the 24-hour time format required by the native time input.