Skip to main content

task_attribute

Description

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

task_attribute: string

Example

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

Default value: "data-task-id"

Details

data_task_id

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.

Need help?
Got a question about the documentation? Reach out to our technical support team for help and guidance. For custom component solutions, visit the Services page.