快速问题我似乎无法让 Accordion 按钮从右向左移动,并且想知道是否有一种特定的方法可以做到这一点,我已经检查了文档,但似乎无法做到这一点。我添加了一些代码,但由于缺乏声誉,我无法添加图像。
[编辑]
我想将 Accordion 按钮移到标题之前。
{
xtype: "panel",
id: "calendarLeftMenu",
layout: {
type: 'accordion',
titleCollapse: true,
animate: false,
activeOnTop: false,
multi: true,
buttonAlign:"left"
},
items: [
{
xtype: "panel",
title: "Releases",
left: "0px",
buttonAlign:"left",
id: "release-panel",
style: "padding-left: 1px;",
listeners: {
beforeexpand: {
fn: function () {
if (Ext.get('release-on-btn').dom.className === 'switch-small-off-icon') {
return false;
}
}
}
},
tools: [
{
type: 'mytool',
id: 'release-collapse-btn',
renderTpl: releaseTabSwitcher,
width: 60,
region: "west",
weight: 100,
}
]
最佳答案
想通了。
header:{
titlePosition: 1
},
关于javascript - Extjs 5将 Accordion 按钮移动到标题左侧,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32366520/