ampersand-pikaday-view
v0.0.1
Published
An Ampersand view module for user date input, using pikaday.js
Downloads
4
Readme
ampersand-pikaday-view
An Ampersand view module for user date input, using pikaday.js and based on ampersand-date-view.
install
npm install ampersand-pikaday-view
example
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',
}),
...
];
}
});
opts
- minDate
- maxDate
And all the standard options from ampersand-input-view
credits
Thanks to @mikehedman for ampersand-date-view
and @dbushell for pikaday.js
.
license
MIT