Hi,
i have a tbar scheduler :
tbar : [
'',
'->',
{ type : 'viewpresetcombo' },
]
how to put default value like 'week' ?
BR
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
All the best,
Alex