selectDate

selects the specified date

void selectDate(string|Date date,boolean mode);

Parameters

datestring|Datea Date object or a string representing a date
modebooleantrue - to show the selected date in the calendar, false - not to show the selected date

Example

webix.ui({
    view:"calendar",
    id:"calendar1"
});
$$('calendar1').selectDate(new Date(2012,3,30));

Details

The method is analogous to setValue.

See also
Back to top