Package Exports
- ember-date-components
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (ember-date-components) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
ember-date-components
An Ember add-on which provides pure Ember-based date picker components.
Installation
ember install ember-moment
- This is a dependency that you will need to install manuallyember install ember-date-components
Basic Usage
{{date-picker action=(action 'updateDate')}}
{{date-picker range=true action=(action 'updateDateRange')}}
{{time-picker action=(action 'updateTime')}}
The date picker can also display custom options, e.g. 'Last 7 days'.
It also provides test helpers to easily interact with the date picker in integration & acceptance tests:
import interactWithDatePicker from 'ember-date-components/helpers/interact-with-date-picker';
let datepicker = interactWithDatePicker(this.$('.datepicker'));
datepicker.toggle();
datepicker.select(moment());
For more detailed instructions and examples, please visit the documentation.