0.0.1 • Published 9 years ago

ampersand-pikaday-view v0.0.1

Weekly downloads
3
License
MIT
Repository
github
Last release
9 years ago

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