1. Ext.setup({
  2. onReady: function() {
  3. var twitter ={
  4. dock:"top",
  5. style:"background-color: #000099;color:white;",
  6. title: "twitter",
  7. html: "some content from twitter comes here"
  8. }
  9. var plus ={
  10. dock:"top",
  11. style:"background-color: #aaaaa;color:black;",
  12. title: "Google Plus",
  13. html: "some content from Google Plus comes here"
  14. }
  15. var facebook ={
  16. dock:"top",
  17. style:"background-color: #aaaa55;color:white;",
  18. title: "facebook",
  19. html: "some content from Facebook comes here"
  20. }
  21. var rootPanel= new Ext.TabPanel({
  22. fullscreen: true,
  23. layout: 'fit',
  24. items: [twitter,plus,facebook]
  25. });
  26.  
  27.  
  28. }
  29. });