...In a more advanced implementation, we could subclass Calendar to
build in these behaviors...
— Eric Miraglia
So any plans to subclass Calendar in a (near) future YUI library version?
I'd prefer to add the year drop-down to the header of a 1-up calendar,
but I'm not sure where to start. Any advice?
> Thanks for the question.
> It's come up from time to time that the default Calendar Control UI
> does not support year selection — just month-by-month navigation.
> The reason for this is that the default UI was designed with a simple
> use case in mind; namely, the selection of one or more proximal
> dates. This UI does not hold up well, as you suggest, when the use
> case involves selecting dates that fall years into the past or the
> While the default UI doesn't support this, we built Calendar with the
> idea in mind that it would be extensible for many different uses.
> For example, you can easily write navigation controls that move the
> calendar ahead by n years, to a specific year, by n months, to a
> specific month, etc., using existing API methods.
> Here is an example that shows a 2-up CalendarGroup whose interface
> has been modified to include year-navigation controls:
> Selecting Years in the Calendar Control
> Eric Miraglia
> Yahoo! Presentation Platform Engineering
> On Dec 4, 2006, at 11:21 PM, Moin Ahmed wrote:
> > Hi,
> > Im using Yahoo Calendar control in my project. Its really wonderful
> > but I couldnt find any option to select 'Year'. If I have to select my
> > birth year, then I need to move month by month...
> > Can any one please show me the right way!
> > thanks,
> > Moin Ahmed