13693261870
2022-09-16 354b3dbfbffb3df45212a2a44dbbf48b4acc2594
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
Ext.define('Neptune.view.button.widget.SmallSplit', {
    extend: 'Ext.button.Split',
    xtype: 'smallSplitButton',
    text: 'Small Split',
    menu: [
        {text: 'Menu item'},
        {text: 'Check 1', checked: true},
        {text: 'Check 2', checked: false},
        '-',
        {text: 'Option 1', checked: true,  group: 'opts'},
        {text: 'Option 2', checked: false, group: 'opts'},
        '-',
        {
            text: 'Sub-items',
            menu: Ext.widget('menu', {
                items: [
                    {text: 'Item 1'},
                    {text: 'Item 2'}
                ]
            })
        }
    ],
 
    constructor: function(cfg) {
        if (cfg.icon) {
            this.iconCls = 'btn-add';
        }
        this.callParent(arguments);
    }
});