Get taskbar information on click action in JQuery Gantt widget

When we click on the taskbar, taskbarClick event will be triggered, using this event and it’s arguments, we can do any action related to taskbar. The following code example shows how to use this event.

  • javascript
  • $("#Gantt").ejGantt({
            //...
            taskbarClick: function(args) {
                var taskbarElement = args.taskbarElement,
                    taskData = args.data,
                    target = args.target;
                //...
                //your code goes here
            },
        });

    You can find the JS playground sample for this here.