Skip to content

Frozenfire92/ember-pikaday

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Authors:

Usage

  1. Install via Bower
bower install --save ember-pikaday
  1. 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');
  1. 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