-
Notifications
You must be signed in to change notification settings - Fork 214
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
Option yearRange is needed for datepicker #61
Comments
any ideas about the API and the way it should look like? |
I think, the option for #column should be created. I suggest to make it indifferent on the java-script used, will it be datepicker, calendarview, or something else. It should take the hash that is to be translated to JS object and passed to the JS call. |
P.S. I know you pass changeMonth and changeYear, but maybe someone will want it to be false. |
The solution is very basic: a88a750 There is a default year range for all datepickers in the config file. Providing WiceGrid configuration API to set up each grid seems redundant when one can easily change the range with javascript: $( ".hasDatepicker" ).datepicker( "option", "yearRange", "2000:2042" ); |
What if different ranges are needed, say for :date_of_birth and :passport_valid_tilll? |
Then you use the aforementioned javascript with DOM IDs to target specific datepickers . There is no need for additional API when using |
…etached_filters Deflake more tests
And most probably for the portotype version.
You see, it is strange to have the range 2001..2021 for the birthday year of the user.
The text was updated successfully, but these errors were encountered: