Styling event description


#1

Hello,

I am trying to display event description italicized under certain condition. What is the best way to do this?


#2

Hi @c9482,

You can specify the condition in the event_text template. I.e.

scheduler.templates.event_text = function(start, end, event){ 
    if(condition)
        return "<span style='font-style: italic'>" + event.text + "</span>"; 

    else
        return event.text; 
}

#3

Hi Polina,

Thank you for the hint. Does this also apply to ASP.NET version of the product? Many thanks in advance.


#4

@c9482

Yes, here is this template in the scheduler .Net documentation. Please check:
http://scheduler-net.com/docs/dhxscheduler.templates.html