X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/6a7e4474cba9d8be4b2ec445e10f1691f7277c50..HEAD:/examples/toolbar/toolbars.js?ds=inline diff --git a/examples/toolbar/toolbars.js b/examples/toolbar/toolbars.js index 8354f6c6..b97f5e4a 100644 --- a/examples/toolbar/toolbars.js +++ b/examples/toolbar/toolbars.js @@ -1,22 +1,38 @@ -/*! - * Ext JS Library 3.2.0 - * Copyright(c) 2006-2010 Ext JS, Inc. - * licensing@extjs.com - * http://www.extjs.com/license - */ +/* -Ext.onReady(function(){ - +This file is part of Ext JS 4 + +Copyright (c) 2011 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. + +*/ +Ext.require([ + 'Ext.panel.*', + 'Ext.toolbar.*', + 'Ext.button.*', + 'Ext.container.ButtonGroup', + 'Ext.layout.container.Table' +]); + +Ext.onReady(function() { + var fakeHTML = "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."; + var SamplePanel = Ext.extend(Ext.Panel, { - width: 500, - height:250, - style: 'margin-top:15px', + width : 500, + height : 250, + style : 'margin-top:15px', bodyStyle: 'padding:10px', - renderTo: 'docbody', - html: Ext.example.shortBogusMarkup, + renderTo : Ext.getBody(), + html : fakeHTML, autoScroll: true }); - + new SamplePanel({ title: 'Standard', tbar: [{ @@ -102,9 +118,7 @@ Ext.onReady(function(){ }] }] }); - - - + new SamplePanel({ title: 'Multi columns (No titles, double stack)', tbar: [{ @@ -163,7 +177,7 @@ Ext.onReady(function(){ }] }] }); - + new SamplePanel({ title: 'Mix and match icon sizes to create a huge unusable toolbar', tbar: [{ @@ -220,7 +234,7 @@ Ext.onReady(function(){ }] }] }); - + new SamplePanel({ title: 'Medium icons, arrows to the bottom', tbar: [{ @@ -290,8 +304,8 @@ Ext.onReady(function(){ }] }] }); - - + + new SamplePanel({ title: 'Medium icons, text and arrows to the left', tbar: [{ @@ -319,7 +333,7 @@ Ext.onReady(function(){ }] }] }); - + new SamplePanel({ title: 'Small icons, text and arrows to the left', tbar: [{ @@ -347,5 +361,4 @@ Ext.onReady(function(){ }] }] }); - -}); \ No newline at end of file +});