Custom Tag - how to?
8 years ago.
Hi, I'm trying to use the Calendar "tag" property to store custom values, coding in AngularJS.
The issue is that values I set are not kept after I update (move) the event. Below code is for testing - the intended use of tag.value is to hold a database id, to be able to update database records when events are moved.
I define a tag, "value", set it, and update the event:
...
dp.dataTagFields = "value";
...
dp.onEventMoved = function (args) {
console.log(args.e);
args.e.tag.value = 101;
dp.events.update(args.e);
};
Next time onEventMoved is called, tag.value does not exist. What am I missing?
Thanks
DayPilot