- Border layout allows you you to create a layout based on the regions.
- Layout needs to be allocated as regions
- Typical ExtJS application has border layout has initial layout
Following are the regions defined in border layout
- East
- West
- Center - Main Content
- North - Header
- South - Footer
{ id:'border-panel',
title: 'Border Layout',
layout: 'border',
bodyBorder: false,
defaults: {
collapsible: true,
split: true,
animFloat: false,
autoHide: false,
useSplitTips: true,
bodyStyle: 'padding:15px'
},
items: [{
title: 'Footer',
region: 'south',
height: 150,
minSize: 75,
maxSize: 250,
cmargins: '5 0 0 0',
html: '<p>Footer content</p>'
},{
title: 'Navigation',
region:'west',
floatable: false,
margins: '5 0 0 0',
cmargins: '5 5 0 0',
width: 175,
minSize: 100,
maxSize: 250,
html: '<p>Secondary content like navigation links could go here</p>'
},{
title: 'Main Content',
collapsible: false,
region: 'center',
margins: '5 0 0 0',
html: '<h1>Main Page</h1><p>This is where the main content would go</p>'
}]
},
Thursday, July 2, 2015
ExtJS - Border Layout
Subscribe to:
Post Comments (Atom)
AWS Interview Questions and Answers
Sure! Here are the answers to the **AWS Services and Cloud Infrastructure** questions: ### **AWS Services and Cloud Infrastructure (50 Ques...
-
Ext.defer or Ext.function.defer is a function similar to javascript setTimeout function. Ext. defer (function() { alert('H...
-
Javascript prototype is quite fuzzy word for javascript developers in the beginning. Prototype is the property which is available for all...
-
In Javascript world the things are always confused. The most confused and made complicated feature is closure. But the truth is Javascrip...
No comments:
Post a Comment