Our pure JavaScript Scheduler component


Post by frederick45 »

Hi,

i have a tbar scheduler :

          tbar : [
                '',
                '->',
                { type : 'viewpresetcombo' },
            ]

how to put default value like 'week' ?

BR


Post by alex.l »

You need to set that viewPreset in the scheduler's initial config

viewPreset : 'weekAndDay',

and it will be pre-selected in the combo, if combo's https://bryntum.com/products/gantt/docs/api/Scheduler/widget/ViewPresetCombo#config-presets array does have it.

You can test it here https://bryntum.com/products/gantt/docs/api/Scheduler/widget/ViewPresetCombo by adding that line to online example code

Attachments
Screenshot 2022-11-30 at 20.21.44.png
Screenshot 2022-11-30 at 20.21.44.png (302.3 KiB) Viewed 220 times

All the best,
Alex


Post by frederick45 »

it's ok

BR


Post Reply