Welcome,
Guest
|
|
I'm working with web2cal basic version and I would view groups of events with different color.
I try with this code: var events = new Array();
...
var colors = new Array();
colors.push({color:"redTemplate",css:"redDiv"});
var groups = new Array();
groups.push({groupId:1,name:"group_1",color: colors,events:events});
ical.render(groups); but it don't work. On firefox I get error "Z.color is undefined". SomeOne can write an example that describe a way to view groups of events to different colors or Can explain how to do. Thanks! |
Please Log in to join the conversation. |
|
Hey,
This is how I did and it works var group = {
name: "Club 2",
groupId: "200",
events: events,
color:SSPlotter.colors[5]
};
OR - THIS ALSO WORKS.
var group = {
name: "Club 2",
groupId: "200",
events: events,
color:{color:"purple", css:"dirtypurple"}
}; I am using Premium version 1.3.7 and It works well. I haven't tried it in other versions. Good Luck! |
Please Log in to join the conversation. |