ember-pikaday

Pikaday support in Ember.js via components


License
Other
Install
bower install ember-pikaday

Documentation

ember-pikaday

Pikaday support in Ember.js via components. Uses Moment.js for beautification.

Authors:

Usage

1) Install via Bower

bower install --save ember-pikaday

2) Add library references to index.html or Brocfile.js

<link rel="stylesheet" href="bower_components/pikaday/css/pikaday.css">

<script src="bower_components/pikaday/pikaday.js"></script>
<script src="bower_components/ember-pikaday/build/lib.js"></script>
app.import('bower_components/pikaday/css/pikaday.css');
app.import('bower_components/pikaday/pikaday.js');
app.import('bower_components/ember-pikaday/build/lib.js');

3) Use in your project

This will bind your(Date/String)Property to the date picker

{{pik-a-day date=yourDateProperty}}
or
{{pik-a-day value=yourStringProperty}}

You can use moment's utc parser aswell

{{pik-a-day date=yourDateProperty utc=true}}

You can use a custom class (like bootstrap input)

{{pik-a-day value=yourStringProperty class="form-control"}}

Developing

After cloning repository, install library dependencies.

npm install
bower install

Then build with grunt.

grunt serve