Pikaday support in Ember.js via components. Uses Moment.js for beautification.
- Install via Bower
bower install --save ember-pikaday
- 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');
- Use in your project
This will bind your(Date/String)Property
to the date picker
You can use moment's utc parser aswell
You can use a custom class (like bootstrap input)
After cloning repository, install library dependencies.
npm install
bower install
Then build with grunt
.
grunt serve