Our pure JavaScript Scheduler component


Post by bizzcoo »

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.

Attachments
schedulerpro-dates-test.zip
(1.31 KiB) Downloaded 83 times

Post by fabio.mazza »

Hi bizzcoo,

Thank's for report, there is a bug for mapping on nested date fields specifically. Here is the issue to follow the status: https://github.com/bryntum/support/issues/1569

Best regards,
Fabio


Post Reply