I'm trying to create new fields on my event creator from Calendar. However, i'm keep getting a deprecated notice from navigator. In the image is the notice.
const calendar = new Calendar({
...
features : {
eventEdit : {
items : {
comments : {
type: 'text',
name: 'comments',
label: 'Comments',
weight: 0 // move to top as first field
},
organizationName : {
type: 'text',
name: 'organizationName',
label: 'Organization',
weight: 1 // move to top as second field
}
}
}
}
});
For Angular, you can try this on calendarConfig.ts:
features: {
eventEdit: {
items: {
comments : {
type: 'text',
name: 'comments',
label: 'Comments',
weight: 0 // move to top as first field
},
organizationName : {
type: 'text',
name: 'organizationName',
label: 'Organization',
weight: 1 // move to top as second field
}
}
}
}
Sorry, on my last answer I wrote some code about React integration, I have edited and fixed it.
But is basically is same thing. You can try on Calendar filtering demo. You have just to change the file Calendar/examples/frameworks/angular/filtering/src/app/calendarConfig.ts line 19 to this:
...
features: {
eventEdit: {
items: {
location: {
type: 'text',
name: 'location',
label: 'Location',
dataset: { eventType: 'Meeting' }
},
comments : {
type: 'text',
name: 'comments',
label: 'Comments',
weight: 0 // move to top as first field
},
organizationName : {
type: 'text',
name: 'organizationName',
label: 'Organization',
weight: 1 // move to top as second field
}
}
}
}
...
Great, now is not giving me any errors, but I want to know how I call this features on HTML? In the print that i'm sending I don't know what to put to call the features.
I'm need to make the fields that I created show on calendar, and I need to insert on HTML the right tag to show this new fields. In the print, you can see the error because I didn't find on the site which tag I need to call on HTML. And the second print I show that the field comments that I created does not show.
Attachments
The print indicating that the field Comments is not implemented.
calendar5.png (25.6 KiB) Viewed 1883 times
The print indicating my code ts, html and the error on HTML.
I've tryed this way however the Calendar doesn't know this [features]='calendarConfig.features', I think the way of calling is wrong. The config is right already. But the changes on config.ts file are not showing on the screen.