DayPilot.Scheduler.onResourceCollapse

This event is fired when a resource tree node is collapsed by the user.

Declaration

onResourceCollapse(args)

Parameters

  • args.resource.start
  • args.resource.name
  • args.resource.id
  • args.preventDefault()

Notes

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

api=1

Declaration

onResourceCollapse(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