Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

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

0
Posted

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

0

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: _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: 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.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123