3 <title>The source code</title>
\r
4 <link href="../resources/prettify/prettify.css" type="text/css" rel="stylesheet" />
\r
5 <script type="text/javascript" src="../resources/prettify/prettify.js"></script>
\r
7 <body onload="prettyPrint();">
\r
8 <pre class="prettyprint lang-js">Ext.onReady(function(){
\r
10 var propsGrid = new Ext.grid.PropertyGrid({
\r
11 renderTo: 'prop-grid',
\r
16 borderWidth: 'Border Width'
\r
19 '(name)': 'Properties Grid',
\r
21 autoFitColumns: true,
\r
22 productionQuality: false,
\r
23 created: new Date(Date.parse('10/15/2006')),
\r
30 scrollOffset: 2 // the grid will never have scrollbars
\r
34 // simulate updating the grid data via a button click
\r
36 renderTo: 'button-container',
\r
37 text: 'Update source',
\r
38 handler: function(){
\r
39 propsGrid.setSource({
\r
40 '(name)': 'Property Grid',
\r
42 autoFitColumns: true,
\r
43 productionQuality: true,
\r
44 created: new Date(),
\r