Constructor
# new DateTimePickerRangeField(id, key, customPropsFrom, customPropsTo, timepicker, apply, dataNode)
Parameters:
Name | Type | Description |
---|---|---|
id |
string
|
Id of the HTML element of the widget |
key |
string
|
Key to use when saving to datanode |
customPropsFrom |
Object
|
Custom properties for from DateTimeWidget |
customPropsTo |
Object
|
Custom properties for to DateTimeWidget |
timepicker |
boolean
|
If True the DatePickers will allow hour and minute selection |
apply |
function
|
function executed when the state changes |
dataNode |
DataNode
|
DataNode where state will be saved on save() |
Extends
Methods
# addListeners()
Listener for on change properties By default is change event for a Input[type=text] field
- Overrides:
# buildDOM()
Builds the DOM representation (view) on initialization.
# refresh()
Updates the end of the date range to the current time
# setDOM()
Updates the component view / DOM representation on state change