Thanks for the swift reply
I have something like:
$scope.config = {
scale: "Hour",
days: 1,
startDate: new DayPilot.Date.today(),
timeHeaders: [
{ groupBy: "Day" },
{ groupBy: "Hour", format: "HH" }
],
resources: [
{ name: "ALAN McCULLOCH", id: 823 },
{ name: "ALAN TOOGOOD", id: 806 },
{ name: "ALPHATRUCK", id: 843 },
{ name: "ANDREW MILLER", id: 847 }
]
};
$scope.jobs = [
{
start: new DayPilot.Date("2016-02-23T00:09:00"),
end: new DayPilot.Date("2016-02-23T00:10:00"),
id: DayPilot.guid(),
resource: 806,
text: "All Day Inspection"
}
];
$scope.add = function() {
$scope.jobs.push(
{
start: new DayPilot.Date("2016-02-23T11:00:00"),
end: new DayPilot.Date("2016-02-23T12:00:00"),
id: DayPilot.guid(),
resource: 843,
text: "Training Job"
}
);
}
My html element is:
<daypilot
- scheduler id="dp" daypilot-config="config" daypilot-events="jobs"></daypilot-scheduler>
I get no errors in the console and my grid loads nicely with the users on the left and the hours along the top but the events specified in $scope.jobs never load (I can evalaute them with {{jobs}} and they're there).