Our blazing fast Grid component built with pure JavaScript


Post by gregc »

I searched but could only find some jquery examples of a menu with a child submenu so I invented the syntax that I thought might work? Obviously it doesn't but am I close ?

cellMenu: {
        items: {
            someItem: {
                text: 'Parent menu',
                onItem: {
                    submenuItem: {
                        text: 'Submenu',
                        onItem: rightclickitem
                    }
                }
            },
Last edited by gregc on Wed Mar 03, 2021 2:17 pm, edited 1 time in total.

Post by alex.l »

Hi gregc,

After you specified an extra item with a name, inside it you have to provide a config for MenuItem widget.
https://bryntum.com/docs/scheduler/#Core/widget/MenuItem#config-menu
We have an example here: https://bryntum.com/docs/scheduler/#Core/widget/Menu

features: {
    cellMenu: {
        items: {
            someItem: {
                text: 'Parent menu',
                menu: [{
                    text: 'Submenu'
                }]
            }
        }
    }
}

All the best,
Alex

All the best,
Alex


Post Reply