Skip to content

Commit

Permalink
Initial import of layouts episode
Browse files Browse the repository at this point in the history
  • Loading branch information
Drone committed Dec 8, 2008
0 parents commit e0dae75
Show file tree
Hide file tree
Showing 343 changed files with 57,389 additions and 0 deletions.
57 changes: 57 additions & 0 deletions layouts/application.js
@@ -0,0 +1,57 @@
Ext.ns('MyApp');

Ext.onReady(function() {
MyApp.viewport = new Ext.Viewport({
layout: 'border',
items: [
{
region: 'center',

layout: 'fit',
items: [
{
title: 'Panel 1',
html: 'Panel 1',
style: 'border: 1px solid red;'
}
]
},
{
region: 'north',
html: '<p>North</p>'
},
{
region: 'south',
html: '<p>South</p>',
height: 50
},
{
region: 'east',
html: '<p>East</p>',
split: true
},
{
region: 'west',
html: '<p>West</p>',
width: 120,
split: true,

layout: 'accordion',
items: [
{
title: 'Panel 1',
html: 'Panel 1'
},
{
title: 'Panel 2',
html: 'Panel 2'
},
{
title: 'Panel 3',
html: 'Panel 3'
}
]
}
]
});
});

0 comments on commit e0dae75

Please sign in to comment.