]>
Commit | Line | Data |
---|---|---|
6527f429 DM |
1 | Ext.define('KitchenSink.view.binding.Formula', {\r |
2 | extend: 'Ext.form.Panel',\r | |
3 | \r | |
4 | //<example>\r | |
5 | otherContent: [{\r | |
6 | type: 'ViewModel',\r | |
7 | path: 'modern/src/view/binding/FormulaModel.js'\r | |
8 | }],\r | |
9 | //</example>\r | |
10 | \r | |
11 | viewModel: 'binding-formula',\r | |
12 | \r | |
13 | items: {\r | |
14 | xtype: 'fieldset',\r | |
15 | instructions: 'As the field changes, the formula calculates the 2x and 4x values.',\r | |
16 | items: [{\r | |
17 | xtype: 'spinnerfield',\r | |
18 | label: 'Number',\r | |
19 | stepValue: 1,\r | |
20 | bind: '{x}'\r | |
21 | }, {\r | |
22 | xtype: 'textfield',\r | |
23 | readOnly: true,\r | |
24 | label: 'Times 2',\r | |
25 | bind: '{x} * 2 = {twice}'\r | |
26 | }, {\r | |
27 | xtype: 'textfield',\r | |
28 | readOnly: true,\r | |
29 | label: 'Times 4',\r | |
30 | bind: '{x} * 4 = {quad}'\r | |
31 | }]\r | |
32 | }\r | |
33 | }); |