My favorites | Sign in
Project Home Issues
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 156: Change Color in eventRender
1 person starred this issue and may be notified of changes. Back to list
Status:  Done
Owner:  ----
Closed:  Oct 2009


Sign in to add a comment
 
Reported by alejandr...@gmail.com, Oct 29, 2009
Hi, as change the color of a particular day in javascript?

have tried so:


eventRender: function(calEvent, element, view) 
{
	element.css('color', 'red');				
},

but not working.......

Have the version v1.4

HelpMe please....

Oct 31, 2009
Project Member #1 adamrs...@gmail.com
http://arshaw.com/fullcalendar/docs/colors-and-theming.php might give you insight on 
how the CSS is related to the HTML markup of an event's element. the 'element' variable 
you are given is just the top level DIV. you would need to do something like this:

element.add('a').css({'background-color':'green','border-color':'green'})

but this is kindof hacky. i would still recommend using an external css file.
Status: Done
Sign in to add a comment

Powered by Google Project Hosting