]> git.proxmox.com Git - extjs.git/blame - extjs/build/examples/kitchensink/classic/samples/view/layout/Border.js
add extjs 6.0.1 sources
[extjs.git] / extjs / build / examples / kitchensink / classic / samples / view / layout / Border.js
CommitLineData
6527f429
DM
1/**\r
2 * Demonstrates usage of a border layout.\r
3 */\r
4Ext.define('KitchenSink.view.layout.Border', {\r
5 extend: 'Ext.panel.Panel',\r
6 xtype: 'layout-border',\r
7 requires: [\r
8 'Ext.layout.container.Border'\r
9 ],\r
10 //<example>\r
11 exampleTitle: 'Border Layout',\r
12 //</example>\r
13 layout: 'border',\r
14 width: 500,\r
15 height: 400,\r
16\r
17 bodyBorder: false,\r
18 \r
19 defaults: {\r
20 collapsible: true,\r
21 split: true,\r
22 bodyPadding: 10\r
23 },\r
24\r
25 items: [\r
26 {\r
27 title: 'Footer',\r
28 region: 'south',\r
29 height: 100,\r
30 minHeight: 75,\r
31 maxHeight: 150,\r
32 html: '<p>Footer content</p>'\r
33 },\r
34 {\r
35 title: 'Navigation',\r
36 region:'west',\r
37 floatable: false,\r
38 margin: '5 0 0 0',\r
39 width: 125,\r
40 minWidth: 100,\r
41 maxWidth: 250,\r
42 html: '<p>Secondary content like navigation links could go here</p>'\r
43 },\r
44 {\r
45 title: 'Main Content',\r
46 collapsible: false,\r
47 region: 'center',\r
48 margin: '5 0 0 0',\r
49 html: '<h2>Main Page</h2><p>This is where the main content would go</p>'\r
50 }\r
51 ]\r
52\r
53});