selectDate

selects the specified date

void selectDate(string|Date date, [boolean mode,boolean multiple] );
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
multiplebooleantrue - to select one more date (relevant for multiselect:true), false - to discard the previous selection

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