]>
Commit | Line | Data |
---|---|---|
6527f429 DM |
1 | /**\r |
2 | * Demonstrates usage of a column layout.\r | |
3 | */\r | |
4 | Ext.define('KitchenSink.view.layout.Column', {\r | |
5 | extend: 'Ext.panel.Panel',\r | |
6 | xtype: 'layout-column',\r | |
7 | requires: [\r | |
8 | 'Ext.layout.container.Column'\r | |
9 | ],\r | |
10 | \r | |
11 | //<example>\r | |
12 | exampleTitle: 'Column Layout',\r | |
13 | //</example>\r | |
14 | \r | |
15 | width: 500,\r | |
16 | height: 400,\r | |
17 | \r | |
18 | layout: 'column',\r | |
19 | \r | |
20 | bodyPadding: 5,\r | |
21 | \r | |
22 | defaults: {\r | |
23 | bodyPadding: 15\r | |
24 | },\r | |
25 | \r | |
26 | items: [\r | |
27 | {\r | |
28 | title: 'Width = 0.3',\r | |
29 | columnWidth: 0.3,\r | |
30 | html: '<p>This is some short content.</p>'\r | |
31 | },\r | |
32 | {\r | |
33 | title: 'Width = 0.7',\r | |
34 | columnWidth: 0.7,\r | |
35 | html: '<p>This is some longer content.</p><p>This is some longer content.</p><p>This is some longer content.</p><p>This is some longer content.</p><p>This is some longer content.</p><p>This is some longer content.</p>'\r | |
36 | },\r | |
37 | {\r | |
38 | title: 'Width = 150px',\r | |
39 | width: 150,\r | |
40 | html: 'Not much here!'\r | |
41 | }\r | |
42 | ]\r | |
43 | \r | |
44 | }); |