You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
53 lines
1.3 KiB
53 lines
1.3 KiB
/*!
|
|
* 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
|
|
});
|
|
});
|