Editing
You can create, update, and delete the data records of the Gantt.
Getting Started
The Gantt provides the following callbacks, components and utility functions to allow full user control:
- First we define
taskModelFields
to prepare the items for manipulation; - row callbacks -
onRowClick
,onRowDoubleClick
andonRowContextMenu
- task callbacks -
onTaskRemove
,onTaskClick
,onTaskDoubleClick
andonTaskContextMenu
- add button callback -
onAdd
- dependency create callback -
onDependencyCreate
- handle
onFormSubmit
- It provides information about the updated task as well ascreatedDependencies
,updatedDependencies
anddeletedDependencies
. - components -
GanttForm
andGanttRemoveDialog
- utility functions for updating the data tree:
addTask
,removeTask
andupdateTask
Please check the example below which shows the example editing implementation in action: