Hi, I’m trying to customize the appearance of the resource timeline cells. I’m trying to use the resourceTimelineFormatFunction callback, at the end of the doc I can read
“Another usage of this callback is to customize the timeline resource representation completely if resourceTimelineMode is set to custom.”
I was looking for a working example in the demos, but the combination of attributes that I need as I understund is resourceTimelineMode = “custom” and resourceTimelineView = “custom” is impossible to find and I was not able to get it work as I wanted. Can you please give me a working example? I’m just trying to extend the actual diagram view, with the yellow color in addition to red and green for some particular cases.
Hi ivanpeevski, thank you for your answer. The problem is that I need to apply different colors dynamically on each cell, which are based on some data that I calculate at runtime. Is there a way to retrieve the current cell in the resourceTimelineFormatFunction (or somewhere else) and change its style? I just need to add the yellow color since the green and red cells are correctly rendered at the moment using the standard behaviour of the library with resourceTimelineMode set to diagram.