开发者

How to expand ExtJS SplitButton?

How to expand ExtJS SplitB开发者_运维问答utton, to see sub items, from code?

Ext version 3.1.0

Thanks.


Try the showMenu() method to display the menu items.

sptButt.showMenu();

Hope this helps.


This is an example how to open context menu by clicking on a split button:

{
    xtype: 'splitbutton',
    text: 'This is a split button, no kidding',
    handler: function () {
        this.showMenu();
    }
}
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜