customd / jquery-calendar

A full day, week, and resource calendar for use with jQuery.
MIT License
62 stars 26 forks source link

How to display google like holidays in Events calendar #28

Closed syedkhaleel2010 closed 10 years ago

syedkhaleel2010 commented 10 years ago

Hi, i want to display holidays in events calendar along with events. i have tried with dummy functions like event2:,add2:,postion2: onload it is diplaying fine but on navigation holidays are not displaying according to month.. please help me to use your pluging

samatcd commented 10 years ago

It depends on exactly how you want this to display, but your best bet is to use CSS to apply holiday styles onto the calendar/day columns.

You can use the attribute selectors as follows:

.ui-cal-label-date[date="2013-12-17"]{
    /** styles for label **/
}

.ui-cal-date[date="2013-12-17"]{
    /** styles for day block **/
}

.ui-cal-date[date="2013-12-17"] .ui-cal-time{
    /** styles for time blocks under a given day**/
}