UIDatetimeFieldEditor

See: UIFieldEditor for text editing
Properties

Name Type
props props
state state

new UIDatetimeFieldEditor(props)

An editor component that lets the user edit text fields on a node.

Param Type
props props

Example

import {UIDateTimeFieldEditor} from 'writer'

render($$) {
   const el = $$('div')
   return el.append(
       $$(UIDateTimeFieldEditor, {
           node: this.props.node,
           field: 'title',
           placeholder: this.getLabel('Add title here')
       })
   )
}

UIDatetimeFieldEditor.props

Properties

Name Type Default Description
field string | Array.<string> Name of the node field to edit
node Node The node
label string Label of the date editor
[type] string "datetime" one of 'datetime', 'date', 'time'
[icon] string An optional icon, defa
[disabled] Boolean false If the input should be disabled

UIDatetimeFieldEditor.state

Properties

Name Type Description
editing boolean If editing

results matching ""

    No results matching ""