datetime-picker
v0.6.0
Published
A Trello-like datepicker with freeform time
Downloads
701
Readme
datepicker
A Trello-like datepicker with freeform time.
Usage
// jQuery
$('input').datepicker()
// Vanilla
new Picker(document.getElementByTagName('input'))
Options
dateFormat
Default: 'MM/DD/YYYY'
doneText
Default: 'Done'
timeFormat
Default: 'h:mm A'
template
Default: JST.datepicker
outputTo
Default: this.$el
prefill
Default: true
onChange
Default: noop
bound to this
(picker instance)
Dependencies
- jQuery
- moment
- bootstrap-datepicker
Development
npm install && bower install
gulp
- Open http://0.0.0.0:8000/example