Premium support for our pure JavaScript UI components
Hey guillaume.morin,
You can use the following snippet
class MyModel extends EventModel {
static get fields() {
return [
{name: "startDate", alwaysWrite: true},
{name: 'endDate', alwaysWrite: true}
]
}
}
// CrudManager instance, both Schedulers chains their stores from it
const crudManager = new CrudManager({
autoLoad: true,
autoSync: true,
eventModel: MyModel,
loadUrl: 'data/data.json',
syncUrl: 'data/data.json',
});
Ahhh, I thought this was used to add custom fields, but I see you can also overwrite config for existing ones.
Perfect, working, thanks !
Glad that worked, feel free to ping us if you need more assistance!