My favorites | Sign in
Project Home Issues
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 789: add color for each hour of a day by using css
1 person starred this issue and may be notified of changes. Back to list
Status:  Done
Owner:  ----
Closed:  Feb 2011


Sign in to add a comment
 
Reported by marc.vas...@gmail.com, Jan 11, 2011
Hello,
for example in week view,
I'd like to use CSS to fill an hour with a color and another hour with another color.

Today, fullcalendar use #fc-agenda-body div for styles and is structured by lines (one hour but for all days) with class fc-slotXX fc-state-default, but there is no div in hour level.

Is there a simple method to do it myself or is a difficult issue to make ?

Thanks,
Marc
Feb 12, 2011
Project Member #1 adamrs...@gmail.com
yeah, fullcalendar makes the vertical and horizontal lines independent of eachother. it does this because in certain browsers (IE and FF mostly), have so many individual cells slowed things down, and made dragging the scrollbars unresponsive.

there is a solution, but it would only work if you want the same colors in each hour for EVERY day of the week. you would need to set your special background colors on the horizontal cells (somehow, maybe using the fc-slotXXX identifiers). that would cause the vertical lines to be covered up. but you might be able to switch their z-indexes to cause on to appear over the other.

i can't guarantee this would work. in fact, there might be issues with click/selecting if you changed this. just an idea. i can't provide any more support beyond this.

unfortunately, this request is too specific to your project to make this a feature to be included in the general release of fullcalendar.

good luck!
Status: Done
Sign in to add a comment

Powered by Google Project Hosting