Our powerful JS Calendar component


Post by jeff.wang »

OK, but how to access the this.date in my code, it show errors for 'this.date'.

Thank you!


Post by tasnim »

Could you please show what errors you're getting?


Post by jeff.wang »

there are two place i test it like below:

Image

Image


Post by tasnim »

Hi,
Thanks for your report, I've reproduced it. Here is a ticket https://github.com/bryntum/support/issues/5003

Here is a temporary workaround:

    modes : {
        agenda : {
            previous() {
                // @ts-ignore
                this.date = DateHelper.add(this.date, -1, 'month');
            },
            next() {
                // @ts-ignore
                this.date = DateHelper.add(this.date, 1, 'month');
            }
        }
    }

Post by jeff.wang »

Ok, it is effect.

Thank You!


Post Reply