这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@einfallstoll
Copy link

This will add an option maxYearsSelectable that can be set to a fixed
number which will end up in "current year +/- fixed number" or null to
display all years possible. This will fix #844

This will add an option `maxYearsSelectable` that can be set to a fixed
number which will end up in "current year +/- fixed number" or null to
display all years possible. This will fix #844
@einfallstoll
Copy link
Author

Usage:

$('input[name=birthday]').pickadate({
    maxYearsSelectable: null,
    selectYears: true,
    selectMonths: true,

    min: new Date(1900, 01 - 1 /* zero-based */, 01),
    max: moment().subtract(18, 'years').toDate()
});

Will end up in a year selection ranging from 1900 to 1998.

@massic80 massic80 mentioned this pull request Apr 10, 2016
@DanielRuf DanielRuf self-requested a review March 31, 2018 21:04
Copy link
Contributor

@DanielRuf DanielRuf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please rebase it on the current head of the master branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Make selectYears limitation adjustable

2 participants