view-no-store.html 778 B

12345678910111213141516171819202122232425262728293031
  1. <html>
  2. <head>
  3. <title>Complex Layout</title>
  4. <link rel="stylesheet" type="text/css" href="../../resources/css/ext-all.css" />
  5. <!-- GC -->
  6. <script type="text/javascript" src="../../ext.js"></script>
  7. <script type="text/javascript">
  8. Ext.require(['*']);
  9. Ext.onReady(function() {
  10. v = Ext.create('Ext.grid.Panel', {
  11. columns: [{
  12. dataIndex: 'fieldName'
  13. }],
  14. height: 100,
  15. width: 200,
  16. style: {
  17. border: '1px solid black'
  18. },
  19. tpl: '<tpl for="."><div class="itemCls">{fieldName}</div></tpl>',
  20. itemSelector: '.itemCls',
  21. renderTo: document.body
  22. });
  23. console.log(v);
  24. });
  25. </script>
  26. </head>
  27. <body>
  28. </body>
  29. </html>