JavaScript Events
Overview
AnyGantt dispatches the chart events that can be handled within JavScript Code. When event is dispatched AnyGantt passes a lot of data about the chart, so you can define what task, period or resource was clicked and do some actions using this information.
In this tutorial we will list all available events, explain when they are dispatched and what data is avaialble in them. There are also several samples showing how to create event handler and how to use data coming from AnyGantt.
Tasks
These are events available for task project:
Event | Description |
---|---|
taskSelect | Dispatched when task is selected. Event returns all available data about element. |
taskDeselect | Dispatched when task is deselected. |
Task Events Handling Sample
This sample shows how handle task events. Launch the sample or take a look at it closer:
Resources and Periods
These are events available for Resource project.
Event | Description |
---|---|
periodSelect | Dispatched when period is selected. Event returns all available data about element. |
resourceSelect | Dispatched when resource is selected. Event returns all available data about element. |
periodDeselect | Dispatched when period is deselected. |
resourceDeselect | Dispatched when resource is deselected. |
Task Events Handling Sample
This sample shows how handle resource and periods events. Launch the sample or take a look at it closer: