The weight
specifies in which position it should go.
the collapsible config of a Panel specifes which direction a Panel should collapse to: https://www.bryntum.com/docs/calendar/api/Core/widget/Panel#config-collapsible
The weight
specifies in which position it should go.
the collapsible config of a Panel specifes which direction a Panel should collapse to: https://www.bryntum.com/docs/calendar/api/Core/widget/Panel#config-collapsible
If i need disable and enable button panel items before calendar mounted, how is the best way?
I can view items with calendarRef
calendarRef.sidebar._items.items[0].value._menu._items.items[1].value._disabled
but that doesn't seem like a good way to do it
My initial calendar config:
{
sidebar: {
cls: 'sidebar-cls',
bodyCls: 'sidebar-body-cls',
items: {
resourceFilter: null,
addNew: {
weight: 0,
type: 'button',
text: 'Crear',
icon: 'b-fa b-fa-plus',
cls: 'add-button-cls',
menuIcon: null,
menu: [
{
text : i18n.global.t('calendar.event'),
onItem : 'up.createCustomEvent',
cls: 'add-button-menu-item-cls'
},
{
text : i18n.global.t('calendar.sendSchedule'),
onItem : 'up.sharePublicSchedule',
cls: 'add-button-menu-item-cls',
}
]
},
}
}
before calendar mounted
Not really clear in which stage you are exactly.
Before config is applied, you can just edit the config itself.
In case you showed here, looks like it's already applied. Use widgetMap
to get items.
https://bryntum.com/docs/calendar/api/Core/widget/Container#property-widgetMap
calendarRef.value.instance.value.sidebar.widgetMap.addNew.menu....
Please open new thread for your question if more details will be required. We have a rule: 1 thread - 1 question.
All the best,
Alex