Opened 13 years ago
Last modified 9 years ago
#5774 open feature
Datepicker: allow descending years in drop-down
Reported by: | kbwood | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | none |
Component: | ui.datepicker | Version: | 1.8.2 |
Keywords: | template | Cc: | |
Blocked by: | Blocking: |
Description
Forums: http://forum.jquery.com/topic/datepicker-should-understand-decrescent-year-listing
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
Change History (7)
comment:1 Changed 11 years ago by
comment:2 Changed 11 years ago by
Type: | enhancement → feature |
---|
comment:3 Changed 10 years ago by
Milestone: | TBD → 1.11.0 |
---|
comment:4 Changed 10 years ago by
Status: | new → open |
---|
comment:5 Changed 9 years ago by
It's been 3 years since this was proposed, and judging from this forum thread this seems like an easy thing to implement. Can someone confirm or deny this is going to make it into jQuery UI 1.11 ? This would be much appreciated!
comment:6 Changed 9 years ago by
Milestone: | 1.11.0 → none |
---|
I can confirm that no API changes for datepicker will make it into 1.11. Datepicker is in the process of being completely rewritten.
comment:7 Changed 9 years ago by
Keywords: | template added; year removed |
---|
Month dropdown should perhaps be done the same way, but year feels more important. It's not so nice that the only way now to achieve this is to do a hack. It makes upgrading jquery-ui a pain since the hack would be easily be forgotten.