Hello,
I want the dataSource for startDate and endDate in my EventModel to be 'eventInterval.start' and 'eventInterval.end' respectively.
I can't get that to work unfortunately, however using dataSource 'start' and 'end' do work.
I use Scheduler Pro 1.0.2.
I also tried to use a nested dataSource for name, which sets the name as expeced (in order for the name to be visible on the event I had to add an eventRenderer that returns the event name).
Below is my EventModel:
class MyEvent extends EventModel {
static get fields() {
return [
{ name: 'name', dataSource: 'eventInterval.name' },
// ----- This works
{ name: 'startDate', dataSource: 'start' },
{ name: 'endDate', dataSource: 'end' }
// ----- This does not work
{ name: 'startDate', dataSource: 'eventInterval.start' },
{ name: 'endDate', dataSource: 'eventInterval.end' }
];
}
}
I can't seem to find what I am doing wrong here.
A test case is attached.