calendarxp Site Admin
Joined: 30 Jan 2005 Posts: 409
|
Posted: Tue Feb 15, 2005 7:23 pm Post subject: How to set the disabled or out-of-range dates in a special style other than line-through? |
|
|
To get rid of the line-through effect on disabled or out-of-range dates, you just need to append the following line to the plugins.js file:
By default the engine only provides 2 theme options to config the tooltip and background image of the out-of-range dates - gsOutOfRange & guOutOfRange. If you want more varied look-and-feel, you just have to code a bit more with the help of agenda.js - for example adding the following line of code in fHoliday will give the out-of-range dates a red font color and a green boxed background:
Code: | function fHoliday(y,m,d) {
if (!fValidRange(y,m,d)) return [gsOutOfRange,null,"green","red",guOutOfRange,true];
...
} |
Make sure you have set the gAgendaMask option properly beforehand, otherwise you may get nothing changed in the look since the corresponding bit may be masked.
_________________ Copyright 2003-2011 Idemfactor Solutions, Inc. All rights reserved. |
|