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

Draws a three part date control: month select, day input, year input

License

Notifications You must be signed in to change notification settings

sinfo/ampersand-date-view

 
 

Repository files navigation

ampersand-date-view Build Status

An extension of ampersand-input-view to create a three part date control.

install

npm install ampersand-date-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

Same as ampersand-input-view

changelog

0.0.7 - removing hardcoded limitation on year

credits

Thanks to the Ampersand group!

license

MIT

About

Draws a three part date control: month select, day input, year input

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%