Skip to content
This repository has been archived by the owner on Jul 7, 2018. It is now read-only.

An Ampersand view module for user date input, using pikaday.js

License

Notifications You must be signed in to change notification settings

sinfo/ampersand-pikaday-view

Repository files navigation

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

About

An Ampersand view module for user date input, using pikaday.js

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published