在折叠面板可折叠时隐藏折叠面板标题。
items: [{
xtype: 'panel',
reference: 'mypanel',
padding: '0 15px',
scrollable:true,
width: 300,
userCls: 'collapsible-panel border-right',
title: 'My Panel',
collapsible: {
direction: 'left',
collapsed: true,
dynamic:true
}
}]
答案 0 :(得分:2)
没有任何内置方法可以实现此目的。您可以使用collapse
和expand
事件。
listeners: {
collapse: function() {
this.setTitle('');
},
expand: function() {
this.setTitle('My Panel');
}
}
我为您创建了一个有效的提琴here