Skip to content

DateEditor

Members

EDITOR_TYPE

Source code

DateEditor.EDITOR_TYPE

Returns the unique editor type identifier for the date editor.

Methods

createElements

Source code

dateEditor.createElements()

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

focus

Source code

dateEditor.focus()

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

init

Source code

dateEditor.init()

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

open

Source code

dateEditor.open()

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

prepare

Source code

dateEditor.prepare()

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

setValue

Source code

dateEditor.setValue()

Sets the editor value, falling back to defaultDate when the value is empty, and warns if the value is not a valid ISO date string.