Skip to content

abhishek97/ember-datetime-picker

Repository files navigation

ember-datetime-picker

A simple addon for datetime picker component for ember This README outlines the details of collaborating on this Ember addon.

Usage

{{ember-datetime-picker onChange=onChange onClose=onClose onOpen=onOpen className='someBootstrapClass' value=startTime }}

Options
  • 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.

Installation

  • ember install ember-datetime-picker

Running

Running Tests

  • npm test (Runs ember try:each to test your addon against multiple Ember versions)
  • ember test
  • ember test --server

Building

  • ember build

For more information on using ember-cli, visit https://ember-cli.com/.

About

A simple addon for datetime picker component for ember

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published