PDA

View Full Version : tbar alignment



sseetharaman
27 Feb 2009, 3:18 AM
Currently I moved two of my buttons namely (Export and Print Preview) which were attached to my grid to tbar. These two buttons show up on the top of the grid left aligned

I had the luxury of aligning the buttons left or right previously.

Do i have the same features to align the tbar entries to right. By default, they align to left

Animal
27 Feb 2009, 3:21 AM
"I had the luxury of aligning the buttons left or right previously."

And what changed?

"->"?

As shown in the examples?

sseetharaman
27 Feb 2009, 3:24 AM
I used buttonAlign:'right'

Do I have something like tbar: 'right'

Animal
27 Feb 2009, 3:28 AM
And where is that in the API?

I mean, it's in a user extension I posted, and in a Feature Request I posted, but other than that, you're making up configs you'd like to see.

Animal
27 Feb 2009, 3:28 AM
"->" just the same as before. You did say you used it before?

Animal
27 Feb 2009, 3:30 AM
Oh, you mean buttonAlign for the Panel then. Not the tbar?

The docs say "The alignment of any buttons added to this panel. Valid values are 'right,' 'left' and 'center' (defaults to 'right')."

sseetharaman
27 Feb 2009, 3:34 AM
Sorry for the confusion.

I used only buttons so far with the grid. I used to align hte buttons to right
I want to use tbar instead of buttons.
tbar aligns the items on left.

I am looking for a solutions to align the tbar items to the right

Animal
27 Feb 2009, 4:33 AM
"->"

http://extjs.com/deploy/dev/docs/?class=Ext.Toolbar.Fill

sseetharaman
27 Feb 2009, 4:42 AM
THANKS AGAIN

I used {xtype: 'tbfill'}, // or '->'
infront of othere items I have in my tbar, it aligned all the items in my tbar to right

THANKS AGAIN