DayPilot.Scheduler.onResourceExpand

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

Declaration

onResourceExpand(args)

Parameters

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

Notes

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