PDA

View Full Version : GridPanel?tbar?overflow??????????



djodjo
24 Mar 2010, 7:07 PM
GridPanel?tbar????????????????????????????
???Overflow????????
????????????????????????????????

http://www.extjs.com/deploy/dev/examples/toolbar/overflow.html

????????????????????????????????????????:-?

overflow???????????????????????

froggugugugu
24 Mar 2010, 9:31 PM
???????frog??????

3.0.0???????????tbar?overflow?????? (http://www.extjs.com/forum/showthread.php?p=450674#post450674)?????
?enableOverflow: false????????????
????????


Ext.onReady(function(){

var handleAction = function(action){
Ext.example.msg('<b>Action</b>', '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: false,
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();

});

djodjo
24 Mar 2010, 9:52 PM
frog??

???????????
???????:D

??????GridPanel?tbar??????????????

tbarCfg:{enableOverflow: false?
???????
????????????????????????:))