X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/d41dc04ad17d1d9125fb2cf72db2b4782dbe3a8c..05ce1c11e98b33f14ddee184493bd5a60dc947e2:/examples/panel/panels.js diff --git a/examples/panel/panels.js b/examples/panel/panels.js index 8e9a4617..fd1931ad 100644 --- a/examples/panel/panels.js +++ b/examples/panel/panels.js @@ -1,17 +1,55 @@ -/* - * Ext JS Library 2.2.1 - * Copyright(c) 2006-2009, Ext JS, LLC. - * licensing@extjs.com - * - * http://extjs.com/license - */ - +/*! + * Ext JS Library 3.0.3 + * Copyright(c) 2006-2009 Ext JS, LLC + * licensing@extjs.com + * http://www.extjs.com/license + */ Ext.onReady(function(){ var p = new Ext.Panel({ title: 'My Panel', collapsible:true, - renderTo: 'container', + renderTo: 'panel-basic', width:400, html: Ext.example.bogusMarkup }); -}); \ No newline at end of file + + // 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 = [ + '
This is a paragraph with STRONG, EMPHASIS and a Link
', + 'Table Column One | ', + 'Table Column Two | ', + '
This is a blockquote' +]; \ No newline at end of file