DayPilot.Event.resource

Declaration

resource()
resource(newResource)

The new value is applied when you call dp.events.update(e) [e.g. DayPilot.Scheduler.events.update()].

Parameters

  • newResource (string) - new event resource id

Return Value

If called without a parameter it returns an event resource id (string).

Example

var oldResource = e.resource();
e.resource("B");