Created
August 17, 2010 20:43
-
-
Save rdougan/531921 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
new Ext.Panel({ | |
fullscreen: true, | |
layout : 'card', | |
style: 'background:red', | |
defaults: {xtype:'panel'}, | |
items: [ | |
{ | |
layout: 'hbox', | |
items: [ | |
{ | |
style: 'background:green', | |
height: '100%', | |
flex : 1 | |
}, | |
{ | |
style: 'background:blue', | |
height: 300, | |
flex : 1, | |
layout: 'card', | |
items : [ | |
{ | |
html: 'Card 1' | |
}, | |
{ | |
html: 'Card 2' | |
} | |
] | |
}, | |
{ | |
style: 'background:orange', | |
height: '50%', | |
flex : 3, | |
layout: 'vbox', | |
items: [ | |
{ | |
width: '100%', | |
flex : 2, | |
style: 'background:white' | |
}, | |
{ | |
width: '50%', | |
flex : 1, | |
style: 'background:black' | |
} | |
] | |
} | |
] | |
} | |
] | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
new Ext.Panel({ | |
fullscreen: true, | |
layout : 'card', | |
style: 'background:red', | |
defaults: {xtype:'panel'}, | |
items: [ | |
{ | |
layout: 'hbox', | |
items: [ | |
{ | |
style: 'background:green', | |
height: '100%', | |
flex : 1 | |
}, | |
{ | |
style: 'background:blue', | |
height: 300, | |
flex : 1, | |
layout: 'card', | |
items : [ | |
{html: 'Card 1'}, | |
{html: 'Card 2'} | |
] | |
}, | |
{ | |
style: 'background:orange', | |
height: '50%', | |
flex : 3, | |
layout: 'vbox', | |
items: [ | |
{ | |
width: '100%', | |
flex : 2, | |
style: 'background:white' | |
}, | |
{ | |
width: '50%', | |
flex : 1, | |
style: 'background:black' | |
} | |
] | |
} | |
] | |
} | |
] | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
new Ext.Panel({
fullscreen: true,
layout : 'card',
});