Skip to content

PromoRepublic/ember-date-components

 
 

Repository files navigation

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.

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • CSS 54.5%
  • JavaScript 33.4%
  • HTML 12.1%