]> git.proxmox.com Git - extjs.git/blob - extjs/examples/classic/neptune-components/app/view/button/widget/SmallSplit.js
add extjs 6.0.1 sources
[extjs.git] / extjs / examples / classic / neptune-components / app / view / button / widget / SmallSplit.js
1 Ext.define('Neptune.view.button.widget.SmallSplit', {
2 extend: 'Ext.button.Split',
3 xtype: 'smallSplitButton',
4 text: 'Small Split',
5 menu: [
6 {text: 'Menu item'},
7 {text: 'Check 1', checked: true},
8 {text: 'Check 2', checked: false},
9 '-',
10 {text: 'Option 1', checked: true, group: 'opts'},
11 {text: 'Option 2', checked: false, group: 'opts'},
12 '-',
13 {
14 text: 'Sub-items',
15 menu: Ext.widget('menu', {
16 items: [
17 {text: 'Item 1'},
18 {text: 'Item 2'}
19 ]
20 })
21 }
22 ],
23
24 constructor: function(cfg) {
25 if (cfg.icon) {
26 this.glyph = 'xF015@FontAwesome';
27 delete cfg.icon;
28 }
29 this.callParent(arguments);
30 }
31 });