resource() resource(newResource)
The new value is applied when you call dp.events.update(e) [e.g. DayPilot.Scheduler.events.update()].
If called without a parameter it returns an event resource id (string).
var oldResource = e.resource(); e.resource("B");