PDA

View Full Version : bbar help please



sanjshah
19 Apr 2008, 8:37 AM
Hi,

I have a bbar in the north, is it possible to split the bar so that I can add text the left


i.e.

item1 | item2 | item3 | item4 (to the left and to the right) item5 | item6


bbar:[{
text:'Item1',
width: 350,
tooltip:'Add Users',
iconCls:'Item1'
},'-',{
text:'Item2',
width: 350,
tooltip:'something'
},'-',{
text:'Item3',
width: 350,
tooltip:'something'
},'-',{
text:'Item4',
width: 350,
tooltip:'something'
},'-',{
// would like to make these appear to the right
text:'Item5',
width: 350,
tooltip:'something'
},'-',{
text:'Log Out',
width: 350,
tooltip:'Log Out'
}]

Is there an option to also change the width of each item - it seems the width does not work as added above?

Any help much appreciated!

Thanks

evant
19 Apr 2008, 8:39 AM
You can't set the width of toolbar buttons.

Use a fill to make items align right: http://extjs.com/deploy/ext-2.0.2/docs/?class=Ext.Toolbar.Fill

sanjshah
19 Apr 2008, 8:56 AM
Thanks evant for quick reply!

that's fine I can live with the width, and the tbfill is great (and easy!)

Regards,

Sanj