X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/2e847cf21b8ab9d15fa167b315ca5b2fa92638fc..6a7e4474cba9d8be4b2ec445e10f1691f7277c50:/examples/toolbar/reorderable.js diff --git a/examples/toolbar/reorderable.js b/examples/toolbar/reorderable.js new file mode 100644 index 00000000..4858856c --- /dev/null +++ b/examples/toolbar/reorderable.js @@ -0,0 +1,53 @@ +/*! + * Ext JS Library 3.2.0 + * Copyright(c) 2006-2010 Ext JS, Inc. + * licensing@extjs.com + * http://www.extjs.com/license + */ +Ext.onReady(function() { + var toolbar = new Ext.Toolbar({ + renderTo: 'docbody', + plugins : [ + new Ext.ux.ToolbarReorderer({ + defaultReorderable: true + }) + ], + items : [ + { + xtype:'splitbutton', + text: 'Menu Button', + iconCls: 'add16', + menu: [{text: 'Menu Item 1'}], + reorderable: false + }, + { + xtype:'splitbutton', + text: 'Cut', + iconCls: 'add16', + menu: [{text: 'Cut Menu Item'}] + }, + { + text: 'Copy', + iconCls: 'add16' + }, + { + text: 'Paste', + iconCls: 'add16', + menu: [{text: 'Paste Menu Item'}], + reorderable: true + }, + { + text: 'Format', + iconCls: 'add16', + reorderable: true + } + ] + }); + + new Ext.Panel({ + renderTo: 'docbody', + tbar : toolbar, + border : true, + width : 600 + }); +}); \ No newline at end of file