Closed slavap closed 10 years ago
I've done option for limiting year picker range, and for month and year picker only selectable years and months in the year are presented, will do a pull request.
Please make sure it's possible to set year picker limit like this: from 1900 to NOW(current year) OR from 1950 to NOW+10. All these years must be available in the picker right away to simplify user experience (not fixed 12 years "sliding" interval like it is in the current implementation).
two new options - 'calYearPickMin' and 'calYearPickMax' - valid options are an integer less than 1800, which will be added/subtracted from the current year (with Max, use a negative integer to go into the past - negative numbers for min will be abs()ed appropriatly), or if the number is greater than 1800, it will be assumed to be a hard year. Finally, the string "NOW" (UCASE!) will use the current year (today's date, not the picker year).
"mode": "calbox", "calUsePickers": true, "calNoHeader": true
There should be additional option to specify YEAR picker range, right now it's hardcoded to "cal.thisYear-6 .. cal.thisYear+6" range.
Also it would be nice to have - and + buttons for Year picker.