Skip to content

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

License

Notifications You must be signed in to change notification settings

addvalue-gmbh/ember-date-components

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ember-date-components

Build Status Ember Observer Score

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

Compatibility

  • Ember.js v3.13 or above
  • Ember CLI v2.13 or above
  • Node.js v10 or above

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')}}
{{date-time-picker action=(action 'updateDate')}}

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 { selectDate, selectDateRange, getSelectedDate, selectDateTime } from 'ember-date-components/test-support/helpers/date-picker';
import { selectTime, getSelectedTime } from 'ember-date-components/test-support/helpers/time-picker';

await selectDate('.my-datepicker', moment());
let momentInstance = await getSelectedDate('.my-datepicker');

await selectTime('.my-timepicker', moment());
let momentInstance = await getSelectedTime('.my-timepicker');

await selectDateTime('.my-date-time-picker', moment());

await selectDateRange('.my-datepicker', dateFrom, dateTo);

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

  • SCSS 46.0%
  • JavaScript 39.3%
  • Handlebars 14.1%
  • HTML 0.6%