search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

Cannot get Id of the moved event in onEventMoved

Asked by Ardus
9 years ago.

When I move an event in the onEventMoved I cannot get the ID of the event. It is a function.

function eventMoved(args) {
console.log('Moved event', args);

api.one('reservations/scheduler/event', args.e.id).get().then(function (response) {
//args.e.id is function instead of an integer/object
//do something
})
}

How to get the ID

Answer posted by Ardus
9 years ago.

Found it. There is a data object

So

args.e.data.id is the right property.

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