X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/25ef3491bd9ae007ff1fc2b0d7943e6eaaccf775..refs/heads/old:/examples/toolbar/overflow.js diff --git a/examples/toolbar/overflow.js b/examples/toolbar/overflow.js index 19f101e7..4bef6425 100644 --- a/examples/toolbar/overflow.js +++ b/examples/toolbar/overflow.js @@ -1,53 +1,56 @@ /*! - * Ext JS Library 3.0.3 - * Copyright(c) 2006-2009 Ext JS, LLC - * licensing@extjs.com - * http://www.extjs.com/license + * Ext JS Library 3.3.1 + * Copyright(c) 2006-2010 Sencha Inc. + * licensing@sencha.com + * http://www.sencha.com/license */ -Ext.onReady(function(){ - - var handleAction = function(action){ - Ext.example.msg('Action', 'You clicked "'+action+'"'); - }; - - var p = new Ext.Window({ - title: 'Standard', - closable: false, - height:250, - width: 500, - bodyStyle: 'padding:10px', - contentEl: 'content', - autoScroll: true, - tbar: [{ - xtype:'splitbutton', - text: 'Menu Button', - iconCls: 'add16', - handler: handleAction.createCallback('Menu Button'), - menu: [{text: 'Menu Item 1', handler: handleAction.createCallback('Menu Item 1')}] - },'-',{ - xtype:'splitbutton', - text: 'Cut', - iconCls: 'add16', - handler: handleAction.createCallback('Cut'), - menu: [{text: 'Cut menu', handler: handleAction.createCallback('Cut menu')}] - },{ - text: 'Copy', - iconCls: 'add16', - handler: handleAction.createCallback('Copy') - },{ - text: 'Paste', - iconCls: 'add16', - menu: [{text: 'Paste menu', handler: handleAction.createCallback('Paste menu')}] - },'-',{ - text: 'Format', - iconCls: 'add16', - handler: handleAction.createCallback('Format') - },'->',{ - text: 'Right', - iconCls: 'add16', - handler: handleAction.createCallback('Right') - }] - }); - p.show(); - +Ext.onReady(function(){ + + var handleAction = function(action){ + Ext.example.msg('Action', 'You clicked "'+action+'"'); + }; + + var p = new Ext.Window({ + title: 'Standard', + closable: false, + height:250, + width: 500, + bodyStyle: 'padding:10px', + contentEl: 'content', + autoScroll: true, + tbar: new Ext.Toolbar({ + enableOverflow: true, + items: [{ + xtype:'splitbutton', + text: 'Menu Button', + iconCls: 'add16', + handler: handleAction.createCallback('Menu Button'), + menu: [{text: 'Menu Item 1', handler: handleAction.createCallback('Menu Item 1')}] + },'-',{ + xtype:'splitbutton', + text: 'Cut', + iconCls: 'add16', + handler: handleAction.createCallback('Cut'), + menu: [{text: 'Cut menu', handler: handleAction.createCallback('Cut menu')}] + },{ + text: 'Copy', + iconCls: 'add16', + handler: handleAction.createCallback('Copy') + },{ + text: 'Paste', + iconCls: 'add16', + menu: [{text: 'Paste menu', handler: handleAction.createCallback('Paste menu')}] + },'-',{ + text: 'Format', + iconCls: 'add16', + handler: handleAction.createCallback('Format') + },'->',{ + text: 'Right', + iconCls: 'add16', + handler: handleAction.createCallback('Right') + }] + }) + }); + p.show(); + }); \ No newline at end of file