A simple addon for datetime picker component for ember This README outlines the details of collaborating on this Ember addon.
{{ember-datetime-picker onChange=onChange onClose=onClose onOpen=onOpen className='someBootstrapClass' value=startTime }}
- onChange will fire when users selects a date from the plugin and a moment object is recieved as argument to the function.
- formatToString will recieve selected date as moment object and exptected to return a string with some format, default is
DD-MM-YYYY HH:mm
- value a moment object which holds the selected date, can be used to specify initial value. Supports two-way data-binding.
- onChange will fire when value for currently selected datetime is changed.
- onOpen will fire when popUp for datetime picker is opened.
- onClose will fire when popUp for datetime picker is closed.
ember install ember-datetime-picker
ember serve
- Visit your app at http://localhost:4200.
npm test
(Runsember try:each
to test your addon against multiple Ember versions)ember test
ember test --server
ember build
For more information on using ember-cli, visit https://ember-cli.com/.