Date and time picker addon based on bootstrap. It uses bootstrap-datetimepicker and moment.js.
- Bootstrap 3
- Ember >= 1.13.0
- Ember CLI
ember install ember-cli-bootstrap-datetimepicker
For demonstration see bootstrap-datetimepicker
Basic example:
Returns: date
, null
Fired when the date is changed
Default: false
Accepts: date
, moment
, string
Sets the picker date/time
Default: true
Accepts: boolean
If false
, the textbox will not be given focus when the picker is shown
Default: false
Accepts: strint
See momentjs' docs for valid formats. Format also dictates what components are shown, e.g. MM/dd/YYYY
will not display the time picker.
Default: moment.locale()
Accepts: string
, moment.local('locale')
Use the specified locale for text rendering
Default: false
Accepts: date
, moment
, string
Prevents date/time selections after this date
Default: false
Accepts: date
, moment
, string
Prevents date/time selections before this date
Default: false
Accepts: boolean
Show the Clear button in the icon toolbar.
Clicking the Clear button will set the calendar to null
.
Default: false
Accepts: boolean
Show the Close button in the icon toolbar.
Clicking the Close button will call hide()
Default: false
Accepts: boolean
Show the Today button in the icon toolbar.
Clicking the Today button will set the calendar view and set the date to now
.
Default: false
Accepts: bolean
, 'year', 'month', 'day', 'hour', 'minute'
If the date is not set, the first time the widget opens will set the date
to current moment (if true
). Granularity can be specified as a string
.
Default: days
Accepts: 'years', 'months', 'days'
The default view to display when the picker is shown.
Note: To limit the picker to selecting, for instance the year and month, use format: MM/YYYY