Categories | Question details Back To List | ||
scedular month color customization I am using your month coloring template sample as a guide, and managed to color a day of the month I am interested in using a style sheet and the following class: scheduler.templates.month_date_class=function(date,today){ if (date.getDate()==<?php echo $LAST_DAY + 1 ?>) return "good_day"; return ""; } 1. What I want is to only color that day for the current month, and not for any other months in the month view. 2. Can I put in specific header text in the top bar where the date is for this day only? thanks, -Mahesh Answer posted by Alex (support) on Dec 14, 2009 00:58 >> 1. What I want is to only color that day for the current month, and not for any other months in the month view. The template gets the date object as the parameter. So, you can check the month of that date. scheduler.templates.month_date_class=function(date,today){ ... >> 2. Can I put in specific header text in the top bar where the date is for this day only? You can define both css classes: .good_day .dhx_month_body{ Answer posted by mahesh on Dec 14, 2009 09:37 Does: date.getMonth() give me the value for the month then? Answer posted by mahesh on Dec 14, 2009 17:08 I figured out the month, it is based on counting from 0-11. For the css classed, is there an easy way to a text statement as part of the class? Answer posted by Alex (support) on Dec 15, 2009 01:04 >> For the css classed, is there an easy way to a text statement as part of the class? there isn't such a way |