ampersand-pikaday-view

0.0.1 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i ampersand-pikaday-view

Weekly Downloads

1

Version

0.0.1

License

MIT

Last publish

Collaborators

  • xicombd