Ext.setup({
onReady: function() {
var twitter ={
dock:"top",
style:"background-color: #000099;color:white;",
title: "twitter",
html: "some content from twitter comes here"
}
var plus ={
dock:"top",
style:"background-color: #aaaaa;color:black;",
title: "Google Plus",
html: "some content from Google Plus comes here"
}
var facebook ={
dock:"top",
style:"background-color: #aaaa55;color:white;",
title: "facebook",
html: "some content from Facebook comes here"
}
var rootPanel= new Ext.TabPanel({
fullscreen: true,
layout: 'fit',
items: [twitter,plus,facebook]
});
}
});