On Dec 3, 2007 10:32 AM, Maris Orbidans <[EMAIL PROTECTED]> wrote:

> Hi
>
> I need a calendar that allows to change years quickly.   I have an input
> field where user should enter his birth date.
> But YUI calendar has buttons to change month only.  We can't ask our
> users to click on those buttons hundred times to move calendar to their
> birth date.
> Is there any way to configure YUI calendar to have buttons that changes
> year ?


override DatePicker#enableMonthYearSelection and return true:

class MyDatePicker extends DatePicker {
  protected boolean enableMonthYearSelection() {
    return true;
  }
}

hth,
  Gerolf


>
>
> And if not what should I do ?   It seems that other calendar (from
> extensions)  is a lot better than this YUI crap but it has been removed
> in 1.3.
>
> Maris
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to