在ExtJs中折叠面板时隐藏折叠面板标题
在中折叠可折叠面板时隐藏折叠面板标题在ExtJs中折叠面板时隐藏折叠面板标题,extjs,Extjs,在中折叠可折叠面板时隐藏折叠面板标题 items: [{ xtype: 'panel', reference: 'mypanel', padding: '0 15px', scrollable:true, width: 300, userCls: 'collapsible-panel border-right', title: 'My Panel', collapsible: { direction: 'left'
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
}
}]
没有任何这样的内置方法来实现这一点。您可以使用
折叠
和展开
事件来执行此操作
listeners: {
collapse: function() {
this.setTitle('');
},
expand: function() {
this.setTitle('My Panel');
}
}
我已经为您创建了一个工作小提琴没有任何这样的内置方法来实现这一点。您可以使用
折叠
和展开
事件来执行此操作
listeners: {
collapse: function() {
this.setTitle('');
},
expand: function() {
this.setTitle('My Panel');
}
}
我为你做了一把小提琴