一、Accordion布局由类Ext.layout.Accordion定义,表示可折叠的布局,点击每一个子元素的头部名称或右边的按钮,则会展开该面板,并收缩其它已经展开的面板。
layoutConfig:true表示在执行展开折叠时启动动画效果,默认值为false。
二、应用举例
Ext.onReady(function(){
        var _panel = new Ext.Panel({
                title:
"人员信息",
                renderTo:Ext.getBody(),
                frame:
true,
                width:
500,
                height:
300,
                layout:
"accordion",
                layoutConfig: {
                animate: 
true 
                },
                items:[{title:
"子元素1",html:"这是子元素1中的内容"},
                {title:
"子元素2",html:"这是子元素2中的内容"},
                {title:
"子元素3",html:"这是子元素3中的内容"}
                ]
                }
                );

相关文章:

  • 2021-07-30
  • 2021-05-31
  • 2021-07-31
  • 2022-01-04
  • 2021-08-20
  • 2021-06-02
  • 2022-02-07
  • 2021-12-31
猜你喜欢
  • 2021-11-11
  • 2021-12-04
  • 2021-11-29
  • 2021-12-08
  • 2022-03-04
  • 2021-09-28
  • 2021-08-07
相关资源
相似解决方案