Event::setResources

Sets the Resources associated with the given event.

event.setResource([ resource0, resource1… ])

Can accept an array of resource IDs:

const event = calendar.getEventById('1');
event.setResources([ 'a' ]); // set a single resource
event.setResources([ 'a', 'b' ]); // set multiple

Can also accept an array of Resource Objects:

const resourceA = calendar.getResourceById('a');
const resourceB = calendar.getResourceById('b');

const event = calendar.getEventById('1');
event.setResources([ resourceA, resourceB ]);