changes the name of the attribute that Gantt uses to find which resource the task row in the resource grid/timeline is referring to

string resource_attribute;


gantt.config.resource_attribute = "data-resource-id";


The default value of the attribute is "resource_id".

Each resource element has the resource_id attribute that is used to find which a resource the DOM element is attached to.

Related sample:  Resourse_attribute

Back to top