Taskbar in TypeScript Gantt control
Taskbar template
You can design your own taskbars to view the tasks in Gantt by using taskbarTemplate property. And it is possible to map the template script element’s ID value to this property. It is also possible to customize the parent taskbars and milestones with custom templates by using parentTaskbarTemplate and milestoneTemplate properties.
Taskbar customization
Taskbar Height
Height of child taskbars and parent taskbars can be customized by using taskbarHeight property. The following code example shows how to use the property.
NOTE
The taskbarHeight value should be lower than the rowHeight property value and these properties accept only pixel values.
Conditional formatting
The default taskbar UI can be replaced with custom templates using the queryTaskbarInfo event. The following code example shows customizing the taskbar UI based on task progress values in the Gantt control.
Change gripper icon in taskbar
You can change the gripper icon in the taskbar by applying styles to their respective class elements.
Multi taskbar support in project view
The Gantt component, supports rendering multi-taskbars in the project view. With this feature the parent taskbar, when it is collapsed, visually summarize the progress of all its child taskbars.
This feature can be enabled by setting the enableMultiTaskbar property value to true.
The following code example shows how to use this property.
Connector lines
The width and background color of connector lines in Gantt can be customized using the connectorLineWidth and connectorLineBackground properties. The following code example shows how to use these properties.
Enable tooltip
In the Gantt control, you can enable or disable the mouse hover tooltip for the following UI elements using the tooltipSettings.showTooltip property:
- Taskbar
- Connector line
- Baseline
- Event marker
The default value of the tooltipSettings.showTooltip property is true.
Tooltip template
Taskbar tooltip
The default tooltip in the Gantt control can be customized using the tooltipSettings.taskbar property. You can map the template script element’s ID value or template string directly to this property.
Connector line tooltip
The default connector line tooltip in the Gantt control can be customized using the tooltipSettings.connectorLine property. You can map the value to this property as template script element ID or template string format. The following code example shows how to use the tooltipSettings.connectorLine property.
Baseline tooltip
A baseline tooltip can be customized using the tooltipSettings.baseline property. The following code example shows how to customize the baseline tooltip in Gantt.
Timeline tooltip
A timeline tooltip can be customized using the tooltipSettings.timeline property. This allows modifying the appearance and content of the tooltip displayed over the timeline. The following code example shows how to customize the timeline tooltip in Gantt.
Tooltip Touch interaction
To perform touch and hold action on a element, refer to tooltip popup.