]>
Commit | Line | Data |
---|---|---|
6527f429 DM |
1 | Ext.define('Neptune.view.button.widget.SmallSplit', {\r |
2 | extend: 'Ext.button.Split',\r | |
3 | xtype: 'smallSplitButton',\r | |
4 | text: 'Small Split',\r | |
5 | menu: [\r | |
6 | {text: 'Menu item'},\r | |
7 | {text: 'Check 1', checked: true},\r | |
8 | {text: 'Check 2', checked: false},\r | |
9 | '-',\r | |
10 | {text: 'Option 1', checked: true, group: 'opts'},\r | |
11 | {text: 'Option 2', checked: false, group: 'opts'},\r | |
12 | '-',\r | |
13 | {\r | |
14 | text: 'Sub-items',\r | |
15 | menu: Ext.widget('menu', {\r | |
16 | items: [\r | |
17 | {text: 'Item 1'},\r | |
18 | {text: 'Item 2'}\r | |
19 | ]\r | |
20 | })\r | |
21 | }\r | |
22 | ],\r | |
23 | \r | |
24 | constructor: function(cfg) {\r | |
25 | if (cfg.icon) {\r | |
26 | this.glyph = 'xF015@FontAwesome';\r | |
27 | delete cfg.icon;\r | |
28 | }\r | |
29 | this.callParent(arguments);\r | |
30 | }\r | |
31 | }); |