Apr 24, 2014, 4:24 AM
[CLOSED] Calendar Panel in Dayview/WeekView how to show disabled dates/time slots in gray color ?
Scenario is as follows
Now, How to display all invalid date related time slots in gray color?
- We get list of Holidays, Leaves and absent employees from database
- Logic to prevent EvnetWindow is written as shown below
CompanyX.isValidDate function checks if date is valid for entry.rangeSelect: function(cal, dates, callback) { if (!CompanyX.isValidDate(dates.StartDate)) return; this.record.show(cal, dates); this.getWindow().on('hide', callback, cal, { single: true }); }, dayClick: function(cal, dt, allDay, el) { if (!CompanyX.isValidDate(dt)) return; this.record.show.call(this, cal, { StartDate: dt, IsAllDay: allDay }, el); },
Now, How to display all invalid date related time slots in gray color?
Last edited by Daniil; May 06, 2014 at 6:58 AM.
Reason: [CLOSED]