Datepicker component for Derby.
Please note that this project is inspired by Bootstrap-datepicker, and makes use of a css-file from that project.
- Datepicker tied to a standard form input field.
- Inline datepicker.
- Localized datepicker.
Dates set by datepicker will be in the format YYYY-MM-DD
(2014-04-16).
- Use personalized formats for dates.
First of make sure to install d-datepicker through npm npm install d-datepicker
.
app.use(require('d-datepicker'));
<Body:>
<!-- datepicker tied to a standard form input field -->
<datepicker active="{{post.date}}"></datepicker>
<!-- inline datepicker -->
<datepicker active="{{post.date}}" inline></datepicker>
<!-- localized datepicker -->
<datepicker active="{{post.date}}" inline lang="fr"></datepicker>
var pickedDate = model.get('post.date');