The resource() method returns the current event resource identifier or sets a new one.
Declaration
DayPilot.Event.resource()
DayPilot.Event.resource(newResource)The new value is applied when you call DayPilot.Scheduler.events.update().
Parameters
newResource(string) - new event resource identifier.
Notes
Call the method without parameters to read the current resource id. Call it with a value to update the event object before saving it back to the control.
Example
const oldResource = e.resource();
e.resource("B");See Also
Availability
Availability of this API item in DayPilot editions:
| Product | Lite | Pro |
|---|---|---|
| DayPilot for JavaScript |
DayPilot