My favorites | Sign in
Project Home Issues
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 34: Patch for setting colours for events
2 people starred this issue and may be notified of changes. Back to list
Status:  Done
Owner:  ----
Closed:  Jun 2009


Sign in to add a comment
 
Reported by dipen....@gmail.com, Jun 11, 2009
What steps will reproduce the problem?
1. You cannot have events of different colours.

What is the expected output? What do you see instead?
You should be able to override the colour of an event.

What version of the product are you using? On what operating system?
Latest

Please provide any additional information below.
I've attached a patch that lets set the colours.

fullcalendar.diff
2.7 KB   View   Download
Jun 11, 2009
#1 KyleRe...@gmail.com
Thanks for the patch.  Any idea on how I might apply the patch?  I'm using a shared
hosting account, so I'm not sure how to apply a .diff to my current Fullcalendar
directory.  Thanks.
Jun 15, 2009
Project Member #2 adamrs...@gmail.com
noo! monkeypatching fullcalendar.js is not the best way. also, it is a good idea to
keep logic + presentation separate. here is a better solution...

in each event from your feed, specify a 'className' (look at the docs for more info).
Then, in write some css for each element w/ whatever class you chose. There is an
example in the comments of fullcalendar.css for changing the background color,
exactly what you want!
Status: Done
Sep 21, 2010
#3 swsu...@gmail.com
I have tried applying className, but it does not work. I am using the json_encode method.
Sign in to add a comment

Powered by Google Project Hosting