-Ext.onReady(function(){\r
- var p = new Ext.Panel({\r
- title: 'My Panel',\r
- collapsible:true,\r
- renderTo: 'panel-basic',\r
- width:400,\r
- html: Ext.example.bogusMarkup\r
- });\r
-\r
- // preventBodyReset: true\r
- new Ext.Panel({\r
- title: 'A Panel with W3C-suggested body-html styling',\r
- preventBodyReset: true,\r
- renderTo: 'panel-reset-true',\r
- width: 400,\r
- html: html.join('')\r
- });\r
-\r
- // preventBodyReset: false\r
- new Ext.Panel({\r
- title: 'Same panel as above with preventBodyReset: false',\r
- normal: false,\r
- renderTo: 'panel-reset-false',\r
- width: 400,\r
- html: html.join('')\r
- });\r
-});\r
-\r
-// Some sample html\r
-var html = [\r
- '<h1>Heading One</h1>',\r
- '<h2>Heading Two</h2>',\r
- '<p>This is a paragraph with <strong>STRONG</strong>, <em>EMPHASIS</em> and a <a href="#">Link</a></p>',\r
- '<table>',\r
- '<tr>',\r
- '<td>Table Column One</td>',\r
- '<td>Table Column Two</td>',\r
- '</tr>',\r
- '</table>',\r
- '<ul>',\r
- '<li>Un-ordered List-item One</li>',\r
- '<li>Un-ordered List-item One</li>',\r
- '</ul>',\r
- '<ol>',\r
- '<li>Ordered List-item One</li>',\r
- '<li>Ordered List-item Two</li>',\r
- '</ol>',\r
- '<blockquote>This is a blockquote</blockquote>'\r
+Ext.onReady(function(){
+ var p = new Ext.Panel({
+ title: 'My Panel',
+ collapsible:true,
+ renderTo: 'panel-basic',
+ width:400,
+ html: Ext.example.bogusMarkup
+ });
+
+ // preventBodyReset: true
+ new Ext.Panel({
+ title: 'A Panel with W3C-suggested body-html styling',
+ preventBodyReset: true,
+ renderTo: 'panel-reset-true',
+ width: 400,
+ html: html.join('')
+ });
+
+ // preventBodyReset: false
+ new Ext.Panel({
+ title: 'Same panel as above with preventBodyReset: false',
+ normal: false,
+ renderTo: 'panel-reset-false',
+ width: 400,
+ html: html.join('')
+ });
+});
+
+// Some sample html
+var html = [
+ '<h1>Heading One</h1>',
+ '<h2>Heading Two</h2>',
+ '<p>This is a paragraph with <strong>STRONG</strong>, <em>EMPHASIS</em> and a <a href="#">Link</a></p>',
+ '<table>',
+ '<tr>',
+ '<td>Table Column One</td>',
+ '<td>Table Column Two</td>',
+ '</tr>',
+ '</table>',
+ '<ul>',
+ '<li>Un-ordered List-item One</li>',
+ '<li>Un-ordered List-item One</li>',
+ '</ul>',
+ '<ol>',
+ '<li>Ordered List-item One</li>',
+ '<li>Ordered List-item Two</li>',
+ '</ol>',
+ '<blockquote>This is a blockquote</blockquote>'