The onRowCollapse event is fired by the JavaScript Gantt Chart when a task tree node is collapsed by the user.
DayPilot.Gantt.onRowCollapse(args)
args.control
(DayPilot.Gantt) - the component reference
args.task
(DayPilot.Task) - the collapsed task
args.preventDefault()
Calling args.preventDefault()
doesn't prevent the node from collapsing. It only prevents the action specified using rowCollapseHandling
.