markCalendar

applies a css class to the specified date

void markCalendar(object calendar,Date date,string css);

Parameters

calendarobjectthe calendar object
dateDatethe date to mark
cssstringthe name of a css class

Example

<style>
my_style{
    color:red !important;//use the 'important' keyword to make sure that 
}                        // the css property will be applied to the specified date
</style>
<script>
    var calendar = scheduler.renderCalendar({...});
    ...
    scheduler.markCalendar(calendar, new Date(2010,3,1), "my_style");
</script>

Required extension: ext/dhtmlxscheduler_minical.js
Details

Note, the method is applied to mini-calendar only, not to the scheduler!

See also
Back to top