Our pure JavaScript Scheduler component


Post by sisco »

Hello,

i'm trying to use this exemple https://www.bryntum.com/examples/scheduler/rowheight/

But when i do this :

       
this.scheduler = new bryntum.scheduler.Scheduler(this._schedulerConfig); this._scheduler$widgetMap = this.scheduler.widgetMap; console.log(this._scheduler$widgetMap); console.log(this._scheduler$widgetMap.rowHeight);

i got this :

CaptureRowHeigt.PNG
CaptureRowHeigt.PNG (20.88 KiB) Viewed 311 times

And when i set, rowHeight in config, always got default size.

            this._schedulerConfig = {
                rowHeight: 32,
                barMargin: 1,
                resourceMargin: 7,
                appendTo: this._schedulerContainerId,

Post by saki »

widgetMap is not supposed to contain rowHeight but the references to the descendant widgets. See https://bryntum.com/docs/scheduler/#Core/widget/Container#property-widgetMap for details, please.

this.scheduler.rowHeight should give you 32, which you gave in the _schedulerConfig


Post by sisco »

Thanks,

It's my fault,

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

I 've merged multiples examples. Now it's ok. I've forced in the responsiveLevels object.

Best regards,

And really congratulation for your product and the documentation.


Post Reply