Login Register

Calendar with holiday support

Hi All,
Does Dijit support calendar where we could represent a particular day as a holiday and disable the day from being selected or at least show the day in a different color/format? Thank you in advance.

Regards,
Yazad Khambata
yazad3@gmail.com

see isDisabledDate and getClassForDate

These methods will let you either disable a date or dates using a function or assign a special CSS class which can be used for styling. Custom CSS and/or DOM modifications with dojo.query() could then provide special appearance based on those classes.

Thanks :)

Thanks Peller...

Example?

Anyone happen to have an example?

I have created a calendar via markup (dojoType="dijit._Calendar") and would like to know how to highlight a specific date.

try dijit/tests/test_Calendar.html

look for "BigCalendar"