开发者

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.


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' } ],
});


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜