Opened 8 years ago
Closed 8 years ago
#16687 closed defect (fixed)
dijit/tests/test_Calendar.html does not highlight days set by getClassForDate
Reported by: | Paul Christopher | Owned by: | bill |
---|---|---|---|
Priority: | undecided | Milestone: | 1.9 |
Component: | Dijit | Version: | 1.8.3 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
Description
See http://archive.dojotoolkit.org/nightly/dojotoolkit/dijit/tests/test_Calendar.html. BigCalendar adds special classes for certain days (line 46 et seq.):
getClassForDate: function(date){ if(!(date.getDate() % 10)){ return "blue"; } // apply special style to all days divisible by 10 }
This works but
<style> .blue { color: blue } </style>
have no effect/ is overridden by the cascade. I.e. looking at the user interface, it seems that getClassForDate is not working, since the respective days are not written in blue text as desired.
Styles are correctly applied by adding !important
<style> .blue { color: blue !important } </style>
Note: See
TracTickets for help on using
tickets.
Thanks, I'll make that fix, although examples like this should really be in the reference guide rather than the code.