Socket
Book a DemoInstallSign in
Socket

ampersand-date-view

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ampersand-date-view

A view module for user date input.

0.0.8
latest
Source
npmnpm
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

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',
              yearMax: 2000
            }),
            ...
        ];
    }
});

opts

  • yearMin (defaults to 1900)
  • yearMax (defaults to 2100)

And all the standard options from ampersand-input-view

changelog

0.0.7 - removing hardcoded limitation on year 0.0.8 - Changes provided by @xicombd from @sinfo: added yearMin, yearMax constraints, demo, and lint cleanup

credits

Thanks to the Ampersand group!

license

MIT

Keywords

forms

FAQs

Package last updated on 21 Jan 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.