I copied the example for coloring events 1:1 into my projects, but it does not work.
It seems like “scheduler.templates.event_class = function(start, end, event)” does not get the event-object, and so the function always returns undefined. From where does this function get the event-object ?
Here are my relevant code-lines, I hope somebody can help.
When saving data from lightbox it will use name value from config of related section
So if you have some property with name=“custom” it will store its value as ev.custom
When loading data from the server side it will use data from json ( lightbox configuration doesn’t matter )
I just fixed it, but I don’t know what the problem was. Either it was, that the column in the database was not called like the section in the code or it was the position of some codelines, which I changed.
Thanks anyways!
Get a guaranteed answer from DHTMLX technical support team
under the most suitable support plan