jtsage / jtsage-datebox

A multi-mode date and time picker for Bootstrap (3&4), jQueryMobile, Foundation, Bulma, FomanticUI, and UIKit (or others)
http://datebox.jtsage.dev/
Other
474 stars 166 forks source link

Calendar with Pickers mode enhancements #293

Closed slavap closed 10 years ago

slavap commented 11 years ago

"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.

marinn commented 11 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.

slavap commented 11 years ago

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).

jtsage commented 10 years ago

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).