You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

59 lines
1.6 KiB

2 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. <html>
  2. <head>
  3. <title>Table Layout</title>
  4. <link rel="stylesheet" type="text/css" href="../../resources/css/ext-all.css"/>
  5. <!-- GC -->
  6. <!-- LIBS -->
  7. <script type="text/javascript" src="../../adapter/ext/ext-base.js"></script>
  8. <!-- ENDLIBS -->
  9. <script type="text/javascript" src="../../ext-all.js"></script>
  10. <style type="text/css">
  11. html, body {
  12. font: normal 11px verdana;
  13. }
  14. #main-panel td {
  15. padding:5px;
  16. }
  17. </style>
  18. <script type="text/javascript">
  19. Ext.onReady(function() {
  20. var panel = new Ext.Panel({
  21. id:'main-panel',
  22. baseCls:'x-plain',
  23. renderTo: Ext.getBody(),
  24. layout:'table',
  25. layoutConfig: {columns:3},
  26. // applied to child components
  27. defaults: {frame:true, width:200, height: 200},
  28. items:[{
  29. title:'Item 1'
  30. },{
  31. title:'Item 2'
  32. },{
  33. title:'Item 3'
  34. },{
  35. title:'Item 4',
  36. width:410,
  37. colspan:2
  38. },{
  39. title:'Item 5'
  40. },{
  41. title:'Item 6'
  42. },{
  43. title:'Item 7',
  44. width:410,
  45. colspan:2
  46. },{
  47. title:'Item 8'
  48. }]
  49. });
  50. });
  51. </script>
  52. </head>
  53. <body>
  54. <script type="text/javascript" src="../shared/examples.js"></script><!-- EXAMPLES -->
  55. </body>
  56. </html>