Apply a class to all_timed - SOLVED

Hello, I have activated all_timed to view events over several days normally.
It would be nice to be able to highlight them somehow, is there any way to apply a CSS class or identify them in some way?

Hello @rollopack ,

You can use the _timed property, to apply class only for multiday events, like follows:

scheduler.config.all_timed = true;
scheduler.templates.event_class = function(start,end,ev){
    if(!ev._timed){
        return " al-tm";
    }

};

Here is a demo:
https://snippet.dhtmlx.com/xks2a0sg

Thanks for the reply! :grinning:

1 Like