task_attribute

sets the name of the attribute that will specify the id of the task's HTML element

string task_attribute;

Example

gantt.config.task_attribute = "data-task-id"


Default value:

"data-task-id"
Details

HTML elements of tasks with the default task_attribute (data-task-id ) look like this:

The task_id attribute is included to remain backward compatibility with previous versions.

See also
Back to top