Class

DateTimePickerField

DateTimePickerField(props, dataNodeopt)

Simple widget to select a datetime from a picker options.

Constructor

# new DateTimePickerField(props, dataNodeopt)

Parameters:
Name Type Attributes Default Description
props Object

Properties object

dataNode DataNode <optional>
null

DataNode to write

View Source fields/DateTimePickerField.js, line 16

Extends

Methods

# addListeners()

Listener for on change properties By default is change event for a Input[type=text] field

Overrides:

View Source fields/BaseField.js, line 128

# buildDOM()

Build the DateTimePicker elements.

Overrides:

View Source fields/DateTimePickerField.js, line 84

# getCleanId() → {String}

Get the clean id name (without # or .)

Overrides:

View Source fields/BaseField.js, line 161

Clean id

String

# getDTPFormat() → {string}

Get formated value for date time picker.

View Source fields/DateTimePickerField.js, line 39

Formated date.

string

# getInputFormat() → {string}

Get formated value for input text.

View Source fields/DateTimePickerField.js, line 49

Formated date.

string

# getValue() → {*}

Get the current value of the field

Overrides:

View Source fields/BaseField.js, line 153

Value of the field

*

# highlight()

Highlight the input.

View Source fields/DateTimePickerField.js, line 142

# onClose(date)

Event on close,

Parameters:
Name Type Description
date moment

Date in moment object.

View Source fields/DateTimePickerField.js, line 66

# restore()

Restore the previous value & trigger onChange callback

Overrides:

View Source fields/BaseField.js, line 196

# save()

Save action trigger onSave method

Overrides:

View Source fields/BaseField.js, line 188

# setDefault()

Set default value.

Overrides:

View Source fields/DateTimePickerField.js, line 56

# setDOM()

Set the date to the input box.

Overrides:

View Source fields/DateTimePickerField.js, line 77

# setElement()

Set the element to listen on changes Overload in some cases

Overrides:

View Source fields/BaseField.js, line 120

# setValue(value)

Programmatically set the value of the widget and update the DOM to reflect the changes.

Parameters:
Name Type Description
value *
Overrides:

View Source fields/BaseField.js, line 143