Our pure JavaScript Scheduler component


Post by sactory »

When I change the zoomlevel on vertical mode by :

WidgetHelper.append([
                {
                    type: 'slider',
                    text: 'Zoom',
                    min: 11,
                    max: 19,
                    value: vm.valueTimeZoom,
                    cls: 'b-bright',
                    onInput({value}) {
                        vm.$emit("timezoom", value);
                    }
                }
            ], {insertFirst: document.getElementById('zoom') || document.body});
scheduler screen: this.scheduler.zoomLevel = value;

error: scheduler.module.js:110300 Uncaught TypeError: Cannot read property 'getTime' of null
Is it bug?

Thank,
Hoang


Post by pmiklashevich »

Hello Hoang,

It's not enough info to reproduce.

vm.$emit("timezoom", value);

This line fires event 'timezoom' and passes the value. I don't see what the handler does, what the value is, and I don't know how Scheduler is configured. Could you please modify any of our examples, do minimal changes to reproduce the issue, zip it up and attach here? Also please mention Scheduler version. How to ask for help is described here: viewtopic.php?f=35&t=772

Meanwhile please check how zooming works in our Vertical demo:
https://www.bryntum.com/examples/scheduler/vertical/

Снимок экрана 2020-06-02 в 10.12.48.png
Снимок экрана 2020-06-02 в 10.12.48.png (311.32 KiB) Viewed 792 times

Also you can set zoomLevel from console:

bryntum.query('scheduler').zoomLevel = 12

Best,
Pavel

Pavlo Miklashevych
Sr. Frontend Developer


Post by sactory »

I have used

 vm.$parent.$refs.scheduler.schedulerEngine.zoomLevel = value; 

to change zoomlevel but it still happens as above


Post by pmiklashevich »

This line looks correct at first glance. schedulerEngine is your scheduler instance, and zoomLevel is the property to change.

Could you please submit a small runnable testcase which shows the problem? You can apply minimal changes to one of our demos. Also please mention Scheduler version you're using.

Cheers!

Pavlo Miklashevych
Sr. Frontend Developer


Post Reply