API overview
Gantt properties
| activeTask | Optional.Defines an active task for which the Editor dialog is opened |
| autoScale | Optional. Allows the timescale to change dynamically its start/end dates |
| cellBorders | Optional. Defines borders style in the Gantt chart |
| cellHeight | Optional. Defines the height of a cell in pixels |
| cellWidth | Optional. Defines the width of a cell in pixels |
| columns | Optional. An array of objects with configuration parameters for columns in the grid area |
| durationUnit | Optional. Defines duration unit for tasks |
| end | Optional. Sets the end date of the timescale |
| highlightTime | Optional. Highlights specific time areas in the chart |
| lengthUnit | Optional. Defines the minimal unit for task bars (the task length) in a chart |
| links | Optional. Defines links between tasks in Gantt |
| readonly | Optional. Prevents making changes to the data in Gantt |
| scaleHeight | Optional. Defines the height of the header cell in pixels |
| scales | Optional. Defines the timescale of Gantt |
| selected | Optional. Marks tasks as selected |
| start | Optional. Sets the start date of the timescale |
| taskTemplate | Optional. Defines your own template for tasks bars |
| tasks | Optional. An array of objects containing the tasks types data |
| tasks | Optional. Defines tasks in Gantt |
| zoom | Enables zooming in Gantt |
Gantt actions
| add-link | Fires when adding a link |
| add-task | Fires when adding a new task |
| copy-task | Fires when copying a task |
| delete-link | Fires when deleting a link |
| delete-task | Fires when deleting a task |
| drag-task | Fires when dragging a task |
| expand-scale | Fires when the scale does not fill all free space in the chart and it's required to expand scale boundaries |
| hotkey | Fires when applying a hotkey |
| indent-task | Fires when indenting a task |
| move-task | Fires when moving a task |
| open-task | Fires when expanding a branch of tasks |
| provide-data | Provides new data for a branch |
| render-data | Fires when data is rendered when scrolling |
| request-data | Fires when data for a task branch is requested |
| scroll-chart | Fires when a chart is scrolled |
| select-task | Fires when selecting a task |
| show-editor | Fires when opening the Editor dialog for a task |
| sort-tasks | Fires when sorting tasks |
| update-link | Fires when updating a link |
| update-task | Fires when updating a task |
| zoom-scale | Fires when zooming a chart |
Gantt methods
| api.detach() | Allows removing/detaching action handlers |
| api.exec() | Allows triggering Gantt actions |
| api.getReactiveState() | Gets the state object with the reactive properties of Gantt |
| api.getState() | Gets the state object that stores current values of most Gantt properties |
| api.getStores() | Gets an object with the DataStore properties of Gantt |
| api.getTask(id) | Gets an object with the task configuration |
| api.intercept() | Allows intercepting and blocking/modifying actions |
| api.on() | Allows attaching a handler to the inner events |
| api.setNext() | Allows adding some action into the Event Bus order |