Extjs 如何更改toolbat Ext JS的对齐方式

Extjs 如何更改toolbat Ext JS的对齐方式,extjs,toolbar,Extjs,Toolbar,我有一个带有一些按钮的工具栏。我希望工具栏中的按钮向右对齐。我该怎么做?这是密码 items: [{ xtype: 'toolbar', dock: 'top', buttonAlign: 'right', // This one does not wrok align: 'right', // This one does neither items: [{ text: 'Foo1' }, { text: 'Foo2

我有一个带有一些按钮的工具栏。我希望工具栏中的按钮向右对齐。我该怎么做?这是密码

items: [{
    xtype: 'toolbar',
    dock: 'top',
    buttonAlign: 'right', // This one does not wrok
    align: 'right', // This one does neither
    items: [{
        text: 'Foo1'
    }, {
        text: 'Foo2'
    }, {
        text: 'Foo3'
   }]
}, {
   // Some other items
}]

添加一个
Ext.toolbar。在其他按钮之前填充

items: [
    { xtype: 'tbfill' }, 
    { text: 'Foo1' }, 
    { text: 'Foo2' }, 
    { text: 'Foo3' }
]
此操作的快捷方式是使用
'->'

items: [
    '->', 
    { text: 'Foo1' }, 
    { text: 'Foo2' }, 
    { text: 'Foo3' }
]