Created
October 20, 2011 18:05
-
-
Save julianshen/1301828 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
Ext.application({ | |
name: 'tabtest1', | |
launch: function() { | |
Ext.create("Ext.TabPanel", { | |
fullscreen: true, | |
tabBar: { | |
docked: 'bottom', | |
layout: { | |
pack: 'center' | |
} | |
}, | |
defaults: { | |
styleHtmlContent: true, | |
scrollable: true | |
}, | |
items: [ | |
{ | |
title: 'Home', | |
iconCls: 'home', | |
html: "<h1>I'm Tab1</h1>"+ | |
'<img src="http://images.apple.com/home/images/hero.jpg" />' | |
}, | |
{ | |
title: 'Contact', | |
iconCls: 'user', | |
html: "<h1>I'm Tab2</h1>" | |
} | |
] | |
}); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment