Skip to content

Instantly share code, notes, and snippets.

@SpencerCooley
Last active August 29, 2015 14:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SpencerCooley/bde16a763785522c2d62 to your computer and use it in GitHub Desktop.
Save SpencerCooley/bde16a763785522c2d62 to your computer and use it in GitHub Desktop.
datasource object
var sampleExistingData = [
{
id: 1,
start: new Date("2013/5/6 08:00 AM"),
end: new Date("2013/5/6 10:00 AM"),
title: "Available To Volunteer",
},
{
id: 6,
start: new Date("2013/5/6 11:00 AM"),
end: new Date("2013/5/6 1:00 PM"),
title: "Available To Volunteer",
},
{
id: 2,
start: new Date("2013/5/7 08:00 AM"),
end: new Date("2013/5/7 10:30 AM"),
title: "Available To Volunteer",
},
{
id: 3,
start: new Date("2013/5/8 08:00 AM"),
end: new Date("2013/5/8 11:30 AM"),
title: "Available To Volunteer",
},
{
id: 4,
start: new Date("2013/5/9 08:00 AM"),
end: new Date("2013/5/9 1:00 PM"),
title: "Available To Volunteer",
},
{
id: 5,
start: new Date("2013/5/10 08:00 AM"),
end: new Date("2013/5/10 3:00 PM"),
title: "Available To Volunteer",
},
]
@SpencerCooley
Copy link
Author

We may not need the title attribute since it will be the same all of the time. I actually auto set it when a new event is created.

@SpencerCooley
Copy link
Author

Oh yeah, and isAllDay is not needed as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment