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