JavaScript
var appointments = [];
var appointment1 = {
id: "id1",
description: "George brings projector for presentations.",
location: "",
subject: "Fashion Expo",
calendar: "East Coast Events",
start: new Date(2016, 10, 15, 9, 0, 0),
end: new Date(2016, 10, 18, 16, 0, 0)
}
var appointment2 = {
id: "id2",
description: "",
location: "",
subject: "Cloud Data Expo",
calendar: "Middle West Events",
start: new Date(2016, 10, 20, 10, 0, 0),
end: new Date(2016, 10, 22, 15, 0, 0)
}
var appointment3 = {
id: "id3",
description: "",
location: "",
subject: "Digital Media Conference",
calendar: "West Coast Events",
start: new Date(2016, 10, 23, 11, 0, 0),
end: new Date(2016, 10, 28, 13, 0, 0)
}
var appointment4 = {
id: "id4",
description: "",
location: "",
subject: "Modern Software Development Conference",
calendar: "West Coast Events",
start: new Date(2016, 10, 10, 16, 0, 0),
end: new Date(2016, 10, 12, 18, 0, 0)
}
var appointment5 = {
id: "id5",
description: "",
location: "",
subject: "Marketing Future Expo",
calendar: "Middle West Events",
start: new Date(2016, 10, 5, 15, 0, 0),
end: new Date(2016, 10, 6, 17, 0, 0)
}
var appointment6 = {
id: "id6",
description: "",
location: "",
subject: "Future Computing",
calendar: "East Coast Events",
start: new Date(2016, 10, 13, 14, 0, 0),
end: new Date(2016, 10, 20, 16, 0, 0)
}
appointments.push(appointment1);
appointments.push(appointment2);
appointments.push(appointment3);
appointments.push(appointment4);
appointments.push(appointment5);
appointments.push(appointment6);
var source = {
dataType: "array",
dataFields: [{
name: 'id',
type: 'string'
},
{
name: 'description',
type: 'string'
},
{
name: 'location',
type: 'string'
},
{
name: 'subject',
type: 'string'
},
{
name: 'calendar',
type: 'string'
},
{
name: 'start',
type: 'date'
},
{
...