Our pure JavaScript Scheduler component


Post by clemenshimmer »

Just upgraded from 5.2.2 to 5.3.1, and the scheduler config broke, fixed some changes which was fine, but it seems what the types indicate and what the docs do on responsiveLevels do differs from each other.
Both versions are 5.3.1.

As for types: ScheudlerConfig at scheduler.d.ts defines it's property responsiveLevels: Record<string, number|string>https://www.bryntum.com/products/scheduler/docs/api/Grid/column/Column#config-responsiveLevels defines it as an Object, further defining "Column settings at different responsive levels, see responsive demo under examples/".

The same problem is present for the columns config: https://www.bryntum.com/products/scheduler/docs/api/Grid/column/Column#config-responsiveLevels

The referenced example has following code:

responsiveLevels : {
        small : {
            levelWidth : 800,
            tickSize   : 127,
            fillTicks  : true,
            rowHeight  : 40
        },
        normal : {
            levelWidth : '*',
            tickSize   : 150,
            fillTicks  : false,
            rowHeight  : 50
        }
    }

This does not correspond with what the types dictate, and I'm not quite sure what is supposed to be the correct definition for this.


Post by alex.l »

Thank you for the report, I filed the ticket to fix this https://github.com/bryntum/support/issues/6466
The correct is how it looks in examples, with Object type config.

All the best,
Alex


Post Reply