]>
Commit | Line | Data |
---|---|---|
947f0963 TL |
1 | Ext.define('Neptune.view.form.widget.Checkboxes', { |
2 | extend: 'Ext.form.FieldContainer', | |
3 | xtype: 'checkboxes', | |
4 | fieldLabel: 'Checkbox Fields', | |
5 | defaultType: 'checkboxfield', | |
6 | items: [ | |
7 | { | |
8 | boxLabel: 'Anchovies', | |
9 | boxLabelAlign: 'before', | |
10 | name: 'topping' | |
11 | }, { | |
12 | boxLabel: 'Artichoke Hearts', | |
13 | name: 'topping', | |
14 | checked: true | |
15 | }, { | |
16 | boxLabel: 'Bacon', | |
17 | name: 'topping' | |
18 | } | |
19 | ], | |
20 | ||
21 | constructor: function(cfg) { | |
22 | if (cfg.vertical === false) { | |
23 | this.layout = { | |
24 | type: 'hbox', | |
25 | defaultMargins: '0 3' | |
26 | }; | |
27 | } | |
28 | ||
29 | this.callParent(arguments); | |
30 | } | |
31 | }); |