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.

to top

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.

to top

Task Events Handling Sample

This sample shows how handle task events. Launch the sample or take a look at it closer:

to top

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.

to top

Task Events Handling Sample

This sample shows how handle resource and periods events. Launch the sample or take a look at it closer:

to top