I was attempting to add an additional field to the event editor. I was able to add the description to the event editor using the extra widgets and passing it into the scheduler, such as:
eventEdit = {
extraWidgets: [
{
type: 'textarea',
name: 'desc',
label: 'Note',
index: 1
}
]
};
So I guess I have a few questions. Right now on the scheduler I'm just supplying a custom object and adding it to the event. Is there a way to access these custom fields inside when creating the custom widget. I looked at the documentation and noticed that creating a subclass of EventModel was the way to go, but when attempting that I get a " Class constructor EventModel cannot be invoked without 'new' " when calling its constructor with super.
Is there another way to do it such as:
eventEdit = {
extraWidgets: [
{
type: 'date',
name: 'requiredOnSiteDateTime',
label: 'Note',
index: 1,
value: event => event.requiredOnSiteDateTime
}
]
};
-Phil