The onResourceCollapse event is fired by the JavaScript Scheduler when a resource tree node is collapsed by the user.
DayPilot.Scheduler.onResourceCollapse(args)
args.resource
(DayPilot.Row) - the collapsed resource
args.preventDefault()
Calling args.preventDefault()
doesn't prevent the node from collapsing. It only prevents the action specified using resourceCollapseHandling (i.e. "PostBack", "CallBack").
onResourceCollapse(resource)
resource (DayPilot.Resource) - resource
DayPilot.Resource is a simple class with three properties:
start (DayPilot.Date) - resource start (corresponds to startDate value for viewType == 'Resource')
name (string) - resource name
value (string) - resource ID