【发布时间】:2012-12-14 02:20:14
【问题描述】:
我的停靠项目很少:
dockedItems: [{
xtype: 'toolbar',
items: [{
xtype:'button',
icon: g_settings.iconUrl + 'add-icon.png',
text: 'Abc',
handler: this._add
},{
icon: g_settings.iconUrl + 'remove-cancel-icon.png',
text: 'Del',
disabled: true,
itemId: 'delete',
scope: this,
handler: this.onDeleteClick
}]
},{
xtype:'toolbar',
dock: 'bottom',
items: [{
xtype: 'button',
height: 30,
// padding: '0 0 0 50',
icon: g_settings.iconUrl + 'add-file-to-doc.png',
text: 'Select',
itemId: 'conndoc',
scope: this,
disabled: true,
handler: this._connToDocument
}]
}, {
xtype: 'pagingtoolbar',
id: 'id-docs-paging',
store: 'Documents',
dock: 'bottom',
displayInfo: true
}],
xtype:pagingtoolbar 和带有text: Select 的工具栏都位于底部,第二个仅包含一个按钮,默认情况下位于工具栏的左侧,但我想留在右侧。我尝试了 ExtJS 文档中的“->”和其他选项,但由于我在工具栏中只有一个项目,我认为我不能使用标准选项。所以我如何将工具栏中的单个项目定位在右侧?
谢谢
勒隆
附言
我忘了 - 分页工具栏总是出现在带有图标的工具栏上方,即使它是停靠项目列表中的最后一个,但我希望分页在底部是最新的,所以如果有人可以帮助我解决这个问题太……
【问题讨论】:
-
再一次,一些简单的东西...非常感谢您对此问题的任何帮助。