简体   繁体   中英

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

尝试在应该在右侧的第一个项目之前添加“ - >”。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM