Answer posted by Dan Letecky [DayPilot]
4 years ago.

Hi Martin,

In the JavaScript version, it's not possible to change the mapping.

But you can transform your object easily like this:

const myEvents = [ /* ... */ ];
const events = myEvents.map(e => ({
  ...e,  // copy the original object
  resource: e.resourceStudio  // override a selected property
  // ...
}));
dp.update({events});
Comment posted by Martin
4 years ago.

Thanks for the quick answer!

This question is more than 1 month old and has been closed. Please create a new question if you have anything to add.