An Ampersand view module for user date input, using pikaday.js and based on ampersand-date-view.
npm install ampersand-pikaday-view
var FormView = require('ampersand-form-view');
var DateView = require('ampersand-date-view');
module.exports = FormView.extend({
fields: function () {
return [
new DateView({
label: 'Birth date',
value: this.model.birthDate || '',
name: 'birthDate',
}),
...
];
}
});
- minDate
- maxDate
And all the standard options from ampersand-input-view
Thanks to @mikehedman for ampersand-date-view
and @dbushell for pikaday.js
.
MIT