CalendarXP.net Support Forum Index CalendarXP.net Support
Most forums here are private and invisible to public.
 
 FAQFAQ   SearchSearch   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How to set the disabled or out-of-range dates in a special style other than line-through?

 
Post new topic   Reply to topic    CalendarXP.net Support Forum Index -> CalendarXP F.A.Q.
View previous topic :: View next topic  
Author Message
calendarxp
Site Admin


Joined: 30 Jan 2005
Posts: 409

PostPosted: 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? Reply with quote

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:

Code:
_lineThru=false;



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.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    CalendarXP.net Support Forum Index -> CalendarXP F.A.Q. All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum


Copyright 2003- Idemfactor Solutions, Inc. All rights reserved.
Powered by phpBB © 2001, 2005 phpBB Group