Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

There is no option to decide how to load (whether load any years after current year) for the option selectYears: num_of_years #1161

Open
Shimul22 opened this issue Apr 28, 2019 · 2 comments
Labels

Comments

@Shimul22
Copy link

It is working OK rather for the case Date of Birth selection. If I use selectYears: 50, it loads 25 years before the current year and 25 years after the current year. But there is no need to load any years after the current year.

I have slightly tweak your code by passing another option (dob: true/false) and adjust the JavaScript code to fulfill my requirements.

I hope you will also provide an option to decide the user whether they want to load any years after the current year or not!!

I have attached what I changed in your code.

carbon (3)

@Shimul22 Shimul22 changed the title There is no option to decide how to load selectYears: num_of_years There is no option to decide how to load (whether load any years after current year) selectYears: num_of_years Apr 28, 2019
@Shimul22 Shimul22 changed the title There is no option to decide how to load (whether load any years after current year) selectYears: num_of_years There is no option to decide how to load (whether load any years after current year) for the option selectYears: num_of_years Apr 28, 2019
@DanielRuf
Copy link
Collaborator

I have attached what I changed in your code.

Hi, not sure where you have changed it in the source files.
Can you provide a patch file or PR which shows the actual changes?

@bsgies
Copy link

bsgies commented May 3, 2019

There is. You can just use max: true and it will work for you. Here's the example: https://jsfiddle.net/xs4z1dot/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants