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.
 
 
 
 

69 lines
1.8 KiB

/*
This file is part of Ext JS 3.4
Copyright (c) 2011-2013 Sencha Inc
Contact: http://www.sencha.com/contact
GNU General Public License Usage
This file may be used under the terms of the GNU General Public License version 3.0 as
published by the Free Software Foundation and appearing in the file LICENSE included in the
packaging of this file.
Please review the following information to ensure the GNU General Public License version 3.0
requirements will be met: http://www.gnu.org/copyleft/gpl.html.
If you are unsure which license is appropriate for your use, please contact the sales department
at http://www.sencha.com/contact.
Build date: 2013-04-03 15:07:25
*/
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>'
];