DHTMLX Docs & Samples Explorer

Show / hide week numbers

Source
<link rel="stylesheet" type="text/css" href="../../codebase/dhtmlxcalendar.css">
    <link rel="stylesheet" type="text/css" href="../../codebase/skins/dhtmlxcalendar_dhx_skyblue.css">
    <script src="../../codebase/dhtmlxcalendar.js"></script>
    <script>
var myCalendar;
function doOnLoad() {
    myCalendar = new dhtmlXCalendarObject("calendarHere");
    myCalendar.setDate(new Date(2013, 5, 6, 16, 0));
    myCalendar.show();
    myCalendar.showWeekNumbers();
}
</script> <div style="margin-bottom:20px;"> <input type="button" value="show" onclick="myCalendar.showWeekNumbers();"> <input type="button" value="hide" onclick="myCalendar.hideWeekNumbers();"> </div> <div id="calendarHere" style="position:relative;height:250px;"></div>