Skip to main content

grid_open

Description

Specifies the icon of the open/close sign in the tree column

grid_open: (task: Task) => string;

Parameters

  • task - (required) Task - the task object

Returns

  • text - (string) - html text which will be rendered in the gantt

Example

gantt.templates.grid_open = function(item) {
return "<div className='gantt_tree_icon gantt_" +
(item.$open ? "close" : "open") + "'></div>";
};