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

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -