extjs - How to change alignment of toolbat Ext JS -
i have toolbar buttons. want buttons in toolbar aligned right. how can ? code
items: [{ xtype: 'toolbar', dock: 'top', buttonalign: 'right', // 1 not wrok align: 'right', // 1 neither items: [{ text: 'foo1' }, { text: 'foo2' }, { text: 'foo3' }] }, { // other items }]
add ext.toolbar.fill
before other buttons:
items: [ { xtype: 'tbfill' }, { text: 'foo1' }, { text: 'foo2' }, { text: 'foo3' } ]
a shortcut use '->'
:
items: [ '->', { text: 'foo1' }, { text: 'foo2' }, { text: 'foo3' } ]
Comments
Post a Comment