thank you for your reply, it works yes, but i wanted to set the color of the event’s color in the onItemInsert function, each event has his own color that i will set it while onItemInsert($event).
your code set only one color for all the event, i want for exemple, event_1 has color green, event_2 has color blue, etc,..
I’m waiting for your feedback,
thank you.