gantt.templates.task_cell_class = function(item,date){
if([test]){
return "myCSS-Class";
}
};
I want to add a custom content (HTML) into a cell, not juste a CSS class.
Is any way to achieve this ? (Or just get the gantt_task_cell DOM element)
Hello Stanislav, thank you for your quick reply.
This is right but not exactly what I want.
(See attached pic)
I want to add the text “Meeting” on 2013-04-08, this date is out of the task limit.
There is no way to place a custom html content in some cell of the grid. You original code is the only way to alter look of grid. If you target only modern browsers, you can still use css template and create a complex css rule with :above or :before flag.