extjs accordion 布局如何让items全部都折叠
答案:2 悬赏:20 手机版
解决时间 2021-03-05 09:20
- 提问者网友:愿为果
- 2021-03-04 19:32
extjs accordion 布局如何让items全部都折叠
最佳答案
- 五星知识达人网友:枭雄戏美人
- 2021-03-04 20:13
加个隐藏的子面板
Ext.create('Ext.panel.Panel', {
title: 'Accordion Layout',
width: 300,
height: 300,
layout: {
type: 'accordion',
animate: true,
multi: true,
},
items: [{
hidden:true, //这里隐藏
},{
title: 'Panel 1',
html: 'Panel content!',
collapsed: true
},{
title: 'Panel 2',
html: 'Panel content!',
collapsed: true
},{
title: 'Panel 3',
html: 'Panel content!',
collapsed: true
}],
renderTo: Ext.getBody()
});
Ext.create('Ext.panel.Panel', {
title: 'Accordion Layout',
width: 300,
height: 300,
layout: {
type: 'accordion',
animate: true,
multi: true,
},
items: [{
hidden:true, //这里隐藏
},{
title: 'Panel 1',
html: 'Panel content!',
collapsed: true
},{
title: 'Panel 2',
html: 'Panel content!',
collapsed: true
},{
title: 'Panel 3',
html: 'Panel content!',
collapsed: true
}],
renderTo: Ext.getBody()
});
全部回答
- 1楼网友:轮獄道
- 2021-03-04 21:37
搜一下:extjs accordion 布局如何让items全部都折叠
我要举报
如以上回答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
点此我要举报以上问答信息
大家都在看
推荐资讯