buttons.selected
Since: DateTime 1.6.0
Enable button move the current value into view.
Please note - this property requires the DateTime extension for DataTables.
Description
When enabled, this option will cause DateTime to show a button that will shift the calendar display to the currently selected date when activated.
The text for the button can be set using i18n.selected
.
Note that the value of the field does not change when activating this button.
Default
- Value:
false
Button will not be shown.
Example
Enable today button:
new DateTime(document.getElementById('test'), {
buttons: {
selected: true
}
});
Related
The following options are directly related and may also be useful in your application development.