Datepicker should understand decrescent year listing
Hi people.
Thanks for this very good datepicker.
And we can make it better, if it would allow to adjust general font-sizes and width of the calendar and
choose to inform a descending year listing.
Unfortunatelly, the datepicker logic was done to impede inverted year listing.
I had to hack my datepicker js to allow inverted year listing.
For me it makes more sense that bigger years are in the TOP of the list and the smaller values at the BOTTOM of it.
For instance, my datepicker is now configured this way (bigger: lower):
yearRange: (new Date().getFullYear()) + ':-110'
What shows TOP: 2010 - 2009 - 2008 ... and 1900 at the bottom of the list.
Could it be possible in next versions ?
a good variable for it would be YearOrdering: 'asc' or 'desc'
or even an intelligence to work when the range informed is like yearRange: 2010:1900
Another thing I had to change is that the calendar was too big, with big fonts and width.
Would it be possible to choose general font-size and the datepicker main width to get smallers calendars, I changed my css in this line and some font-sizes:
.ui-datepicker { width: 13em; padding: .1em .1em 0; }