/ext-4.1.0_b3/examples/videos/layout.html

https://bitbucket.org/srogerf/javascript · HTML · 54 lines · 49 code · 4 blank · 1 comment · 0 complexity · 65b8d0755e6226e378fad79cbb834808 MD5 · raw file

  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
  2. <html>
  3. <head>
  4. <title>Layouts</title>
  5. <link rel="stylesheet" type="text/css" href="../../resources/css/ext-all.css"/>
  6. <!-- GC -->
  7. <script type="text/javascript" src="../../ext-all.js"></script>
  8. </head>
  9. <body>
  10. <script type="text/javascript" charset="utf-8">
  11. Ext.onReady(function() {
  12. Ext.create('Ext.panel.Panel', {
  13. renderTo: Ext.getBody(),
  14. height: 300,
  15. width: 500,
  16. title: 'Top Panel',
  17. layout: {
  18. type: 'accordion'
  19. },
  20. items: [
  21. {
  22. xtype: 'panel',
  23. title: 'My Panel',
  24. html : 'test'
  25. },
  26. {
  27. xtype: 'panel',
  28. title: 'North Panel',
  29. html : 'test'
  30. },
  31. {
  32. xtype: 'panel',
  33. title: 'Second Panel',
  34. items: [
  35. {
  36. xtype: 'button',
  37. text: 'Button 1'
  38. },
  39. {
  40. xtype: 'button',
  41. text : 'Button 2'
  42. }
  43. ]
  44. }
  45. ]
  46. });
  47. });
  48. </script>
  49. </body>
  50. </html>