X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/6e39d509471fe9b4e2660e0d1631b350d0c66f40..2e847cf21b8ab9d15fa167b315ca5b2fa92638fc:/examples/toolbar/overflow.js diff --git a/examples/toolbar/overflow.js b/examples/toolbar/overflow.js index 60c3dc56..032a1c13 100644 --- a/examples/toolbar/overflow.js +++ b/examples/toolbar/overflow.js @@ -1,6 +1,6 @@ /*! - * Ext JS Library 3.1.0 - * Copyright(c) 2006-2009 Ext JS, LLC + * Ext JS Library 3.1.1 + * Copyright(c) 2006-2010 Ext JS, LLC * licensing@extjs.com * http://www.extjs.com/license */ @@ -18,35 +18,38 @@ Ext.onReady(function(){ 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') - }] + 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();