https://snippet.dhtmlx.com/fngij5nc
I would like to display a folder icon for a parent item that doesn’t have any child items. In example as well, I want to have the same icons in #project 1 as well. How can i do it?
https://snippet.dhtmlx.com/fngij5nc
I would like to display a folder icon for a parent item that doesn’t have any child items. In example as well, I want to have the same icons in #project 1 as well. How can i do it?
Hello,
You can modify the grid_file
template and return a different element:
https://docs.dhtmlx.com/gantt/api__gantt_grid_file_template.html
The easiest way would be to check if a task has the “project” type:
https://snippet.dhtmlx.com/j235xhqb
Or you can use a different property.
Another way is to enable the branch_loading
config and modify the $has_child
property:
https://docs.dhtmlx.com/gantt/desktop__dynamic_loading.html
https://docs.dhtmlx.com/gantt/api__gantt_branch_loading_property_config.html
Here is an example in the snippet:
https://snippet.dhtmlx.com/442x8w43