DayPilot.Scheduler.onResourceExpand

The onResourceCollapse event is fired by the JavaScript Scheduler when a resource tree node is expanded by the user.

Declaration

DayPilot.Scheduler.onResourceExpand(args)

Parameters

  • args.resource (DayPilot.Row) - the collapsed resource

  • args.preventDefault()

Notes

Calling args.preventDefault() doesn't prevent the node from expanding. It only prevents the action specified using resourceExpandHandling (i.e. "PostBack", "CallBack").

api=1

Declaration

onResourceExpand(resource)

Parameters

  • 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