6. extjs panel layoutconfig属性
转自:https://blog.csdn.net/xingtianyiyun/article/details/7686811
layoutConfig: Object
Class Ext.layout.Accordion
| 包: | Ext.layout | 
| 所在文件: | AccordionLayout.js | 
| Class: | Accordion | 
| 继承自: | FitLayout | 
这是一种可以包含多个panel的,可折叠式的布局,在任意时刻只能打开一个panel。每个panel都有内置的展开/折叠功能。该类是被设计用来继承的,或者通过layout:'accordion'
Ext.Container.layout 配置项来创建,一般情况下不需要通过new关键字直接创建。
注意:当通过配置项创建一个布局时,布局特有的属性必须通过Ext.Container.layoutConfig 配置项传递进来,然后它将在内部被应用到布局中。示例用法:
var accordion = new Ext.Panel({
    title: 'Accordion Layout',
    layout:'accordion',
    defaults: {
        //应用到每个包含的panel
        bodyStyle: 'padding:15px'
    },
    layoutConfig: {
        // layout-specific configs go here
        titleCollapse: false,
        animate: true,
        activeOnTop: true
    },
    items: [{
        title: 'Panel 1',
        html: '<p>Panel content!</p>'
    },{
        title: 'Panel 2',
        html: '<p>Panel content!</p>'
    },{
        title: 'Panel 3',
        html: '<p>Panel content!</p>'
    }]
});
6. extjs panel layoutconfig属性的更多相关文章
- ExtJS Panel主要配置列表
		
Ext.panel.Panel 属性 值 描述 animCollapse Boolean 设置面板折叠展开是否显示动画,Ext.Fx可用默认true,否则false applyTo Mixed 面板定 ...
 - ExtJs控件属性配置详细
		
序言: 1.本文摘自网络,看控件命名像是4.0以前的版本,但控件属性配置仍然可以借鉴(不足之处,以后项目用到时再续完善). Ext.form.TimeField: 配置项: ...
 - Extjs Panel
		
刚学习Extjs @{ Layout = "~/_SiteLayout.cshtml"; Page.Title = "欢迎访问我的网站!"; } @{ stri ...
 - Extjs 控件属性(部分)
		
Ext.form.TimeField: 配置项: maxValue:列表中允许的最大时间 maxText:当时间大于最大值时的错误提示信息 minValue:列表中允许的最小时间 minText:当时 ...
 - extjs的相关属性
		
通用属性: labelSeparator:''//表示fieldLabel后不会显示冒号":" readOnly:true//仅仅读 focusCls: 'txtHalfInput ...
 - Extjs控件属性
		
Ext.form.TimeField: 配置项: maxValue:列表中允许的最大时间 maxText:当时间大于最大值时的错误提示信息 ...
 - Javascript - ExtJs - 常用方法和属性
		
常用方法和属性(Common methods and attributes) ExtJs中的对象 Ext.Component Ext组件对象,表示一个可渲染的组件. Ext.dom.Element E ...
 - Extjs.panel.Panel赋值的问题
		
初学extjs,很是不爽.也是只有初学者才犯的错误,发出来以免再犯. 先创建一个panel var panel1 = Ext.create('Ext.panel.Panel', { id: 'p1', ...
 - 22.Extjs Panel中显示多行工具栏(tbar)
		
转自:http://blog.sina.com.cn/s/blog_454fbf740100t0xj.html 在应用程序的制作中,我们经常性的会用到工具栏,在Extjs中Panel中提供了tbar和 ...
 
随机推荐
- 集训第六周 古典概型 期望 C题
			
http://acm.hust.edu.cn/vjudge/problem/viewProblem.action?id=30728 一个立体方块,每个单位方块都是关闭状态,每次任两个点,以这两点为对角 ...
 - vscode调试angular2
			
调试步骤: 1.安装nodejs 2.安装vscode 3.vscode安装debugger for chrome插件 4.选择调试->打开调试配置,选择chrome配置,打开lauch.jso ...
 - Spring 和 Hibernate的整合
			
问题 ,spring 和 hibernate 整合 如何整合 1. Spring 使用Hibernate的的SessionFactory 2. Hibernate使用Spring提供的声明式事务
 - 技能CD 效果  shader
			
技能CD特效 这个效果主要是利用反正切函数完成.atan2(x,y)的返回值是[-PI,PI],这个支持4个象限的反正切函数.关于圆角计算,在上篇文章中有介绍. 现在,我们来看看反正切函数的效果: 在 ...
 - xtu summer individual 5 A - To Add or Not to Add
			
To Add or Not to Add Time Limit: 2000ms Memory Limit: 262144KB This problem will be judged on CodeFo ...
 - BNUOJ 26228 Juggler
			
Juggler Time Limit: 3000ms Memory Limit: 32768KB This problem will be judged on HDU. Original ID: 42 ...
 - 587. Erect the Fence
			
Problem statement: There are some trees, where each tree is represented by (x,y) coordinate in a two ...
 - js判断对象是否为空对象的几种方法
			
1.将json对象转化为json字符串,再判断该字符串是否为"{}" var data = {}; var b = (JSON.stringify(data) == "{ ...
 - 51nod 1298 圆与三角形 (计算几何)
			
http://www.51nod.com/onlineJudge/questionCode.html#!problemId=1298 求出圆心到三条线段的最短距离,然后判断是否有顶点在圆外,就把全部情 ...
 - Devu and Flowers  lucas定理+容斥原理
			
Devu wants to decorate his garden with flowers. He has purchased n boxes, where the i-th box contain ...