Hi,
I am setting backcolor for events and they appear correctly for a brief moment before reverting back to the normal colors. Any idea why?
Here is the code that load the events;
function loadEvents() {
DayPilot.request("{Site_Root}/services/Roster_Dates.php?_", function(result) {
var data = eval("(" + result.responseText + ")");
//dp.sortDirections = ["asc"];
for(var i = 0; i < data.length; i++) {
var e = new DayPilot.Event(data[i]);
dp.events.add(e);
dp.update();
}
});
}
Here is sample of the json
[
{
"id": "136009",
"text": " 14:00 No. Bookings:1",
"start": "2017-09-03T14:00:00",
"end": "2017-09-04T00:00:00",
"resource": "41",
"backColor": "red",
"resizeDisabled": "true",
"bubbleHtml": "Time: <br/>14:00<br/> Staff: 14:00 No. Bookings:1"
}
]
As mention the color appear but overridden by the style sheet.
Any help would be appreciated.