Skip to content

Latest commit

 

History

History
38 lines (22 loc) · 981 Bytes

README.md

File metadata and controls

38 lines (22 loc) · 981 Bytes

derby-datepicker

Datepicker component for derby.js.

At the time being there is only an inline version. If you have any suggestions or improvements, open an issue or send a pull request!

"Screenshot of datepicker component"

Please note that this project is inspired by Bootstrap-datepicker, and makes use of a css-file from that project.

Format

Dates set by datepicker will be in the format YYYY-MM-DD (2014-04-16).

Example usage

First of make sure to install derby-datepicker through npm npm install derby-datepicker.

Including

app.use(require('derby-datepicker'));

In template

<Body:>
  <datepicker active="{{post.date}}"></datepicker>

Retrieve data

var pickedDate = model.get('post.date');