Mega Code Archive
Categories
/
JavaScript DHTML
/
GUI Components
Calendar Control - Custom Renderer Example (Holiday Renderer Implementation)
Yahoo! Calendar Control - Custom Renderer Example
Calendar Control
Holiday Renderer Implementation
Here is an example of how to create renderers to format specific holidays with a special style:
var cal1; var renderHoliday = function(workingDate, cell) { YAHOO.util.Dom.addClass(cell, "holiday"); } function init() { cal1 = new YAHOO.widget.Calendar("cal1","cal1Container"); cal1.addRenderer("12/25,1/1", renderHoliday); cal1.render(); }
reset
|
what's selected?
yui.zip( 3,714 k)