My favorites | Sign in
Project Home Issues
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 101: colour individual events
1 person starred this issue and may be notified of changes. Back to list
Status:  Done
Owner:  ----
Closed:  Sep 2009


Sign in to add a comment
 
Reported by pwilson...@gmail.com, Sep 21, 2009

What is the expected output? What do you see instead?
each event can be coloured individually 


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

Please provide any additional information below.
in Version 1.2 I used the following snippet

I commented out the fullcalendar css
.full-calendar-month .event td {
then in the EventRender : 
if (cal.usage == 'S') {
	element.addClass("book_shared")
		}

This doesn't work now in 1.3?
Sep 21, 2009
#1 pwilson...@gmail.com
not sure if this a migration defect or new enhancment
Sep 22, 2009
#2 pwilson...@gmail.com
I'm now using attribute on event ClassName is that the correct method to colour events
eg
{"type":"booking","title":"(3.5hrs) Buy Milk", "url":"booking_edit.asp?id=14",
"start":"2009-09-05T09:00:00Z","end":"2009-09-05T12:30:00Z","className":"myblue"},
....
I also had to comment out the supplied CSS for default colour 
eg
.fc-event a {
	color: #fff;
	border-style: solid;
	border-color: #36c;     /* DEFAULT EVENT COLOR */
	/* background-color: #36c; /*                     */
	}

Is this the official best way to achieve background colouring?
Sep 22, 2009
#3 pwilson...@gmail.com
err I've just noticed when I do the above the I can't see any day numbers on each cell.
Sep 22, 2009
Project Member #4 adamrs...@gmail.com
yes, the css that describes an event's color is different in 1.3. any old css you wrote 
for event-color will not work. i have attached an example that shows you how to do it 
for 1.3. Please run it from in the 'examples' folder of a fresh download of 
fullcalendar. i will include it in the next release, b/c it seems like a lot of people 
are having trouble with this. thanks.
event-coloring.html
1.9 KB   Download
Status: Done
Sign in to add a comment

Powered by Google Project Hosting