/*! * Ext JS Library 3.3.1 * Copyright(c) 2006-2010 Sencha Inc. * licensing@sencha.com * http://www.sencha.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 }); });