/ember-date-components

An Ember add-on which provides pure Ember-based date picker components.

Primary LanguageCSSMIT LicenseMIT

ember-date-components

Build Status Ember Observer Score

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 manually
  • ember 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.