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 |
| baselines | Optional. Shows or hides tasks baselines |
| calendar | Sets a global working-time calendar for the Gantt chart |
| 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 |
| criticalPath | Optional. Enables critical path calculation and visualization in Gantt |
| durationUnit | Optional. Defines duration unit for tasks |
| editorShape | An array of objects containing settings for managing the appearance and functionality of the Editor dialog |
| 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 |
| markers | Defines visual markers on the timescale |
| projectEnd | Optional. Defines the end boundary of the project timeline |
| projectStart | Optional. Defines the start boundary of the project timeline |
| 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 |
| schedule | Enables automatic task scheduling based on end-to-start dependencies |
| selected | Optional. Marks tasks as selected |
| splitTasks | Enables displaying and editing split (segmented) tasks |
| start | Optional. Sets the start date of the timescale |
| tasks | Optional. Defines tasks in Gantt |
| taskTemplate | Optional. Defines your own template for tasks bars |
| tasks | Optional. An array of objects containing the tasks types data |
| undo | Optional. Enables executing the undo and redo actions |
| unscheduledTasks | Allows displaying and handling unscheduled tasks |
| 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 |
| filter-rows | Fires when filtering data |
| 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 |
| redo | Allows performing steps forward in history |
| render-data | Fires when data is rendered when scrolling |
| request-data | Fires when data for a task branch is requested |
| schedule-tasks | Triggers cascading updates of tasks in auto scheduling mode |
| 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 |
| split-task | Splits a task into multiple segments |
| undo | Allows performing steps back in history |
| 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.getTable() | Gets the Table API instance |
| 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.serialize() | Serilizes and returns the list of current tasks in Gantt |
| api.setNext() | Allows adding some action into the Event Bus order |