Opened 9 years ago

Last modified 5 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 8 years ago by mbjorke

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.

comment:2 Changed 7 years ago by Scott González

Type: enhancementfeature

comment:3 Changed 7 years ago by Scott González

Milestone: TBD1.11.0

comment:4 Changed 7 years ago by mikesherov

Status: newopen

comment:5 Changed 6 years ago by Spinal

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 6 years ago by Scott González

Milestone: 1.11.0none

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 5 years ago by Scott González

Keywords: template added; year removed
Note: See TracTickets for help on using tickets.