An extension of ampersand-input-view to create a three part date control.
npm install ampersand-date-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'
}),
...
];
}
});
Same as ampersand-input-view
0.0.7 - removing hardcoded limitation on year
Thanks to the Ampersand group!
MIT