Kiran
Kiran

Reputation: 20313

ExtJS4 toolbar issue

I am new to ExtJS4.I have one doubt,if we add buttons to toolbar buttons are arranged from left side.Is it possible to add buttons from right side?

Actually toolbar is using box layout so i think we need to change options in Box.js.I tried a lot to get the solution.But i am not able to find where it is specifying from left side.Can anyone please help me.

Help would be appreciated.

Upvotes: 0

Views: 782

Answers (2)

hpavc
hpavc

Reputation: 1336

Like the man said, with a stretched layout 1,2 will be at the right side.

<table width="100%">
<tr><td width="100%">&nbspl;</td><td>1</td><td>2</td</tr>
</table>

Ext.create('Ext.toolbar.Toolbar', {
   ...
   items: [ '->',
            { text: '1' }, 
            { text: '2' } ],
});

Upvotes: 2

Marko
Marko

Reputation: 5552

Try adding '->' before the first item which should be on the right side.

Upvotes: 0

Related Questions