568数据 568数据


学习ExtJS 访问容器对象

网络编程 学习ExtJS 访问容器对象 06-21
一、属性
ownerCt:得到当前对象所在的容器。
items:集合列表
二、应用举例

Ext.onReady(function(){
var _window = new Ext.Window({
title:"测试窗体",
layout:"form",
width:300,
plain:true,
items:{
id:"name",
xtype:"textfield",
fieldLabel:"姓名"
},
buttons:[{
text:"确定",
handler:function(){
alert(this.ownerCt.ownerCt.items.first().getValue()) ;
alert(this.ownerCt.ownerCt.items.itemAt(0).getValue()) ;
alert(Ext.getCmp("name").getValue()) ;
}
}]
}) ;
_window.show() ;
}) ;

学习ExtJS Column布局
一、属性(构造参数)baseCls:"x-plain"Panel背景色颜色。layout:"column"Panel进行列布局。在子元素中指定使用columnWidth或width来指定子元素所占的列宽度。columnW

学习ExtJS border布局
一、Border布局由类Ext.layout.BorderLayout定义,布局名称为border。该布局把容器分成东南西北中五个区域,分别由east,south,west,north,cente来表示,在往容器

学习ExtJS fit布局使用说明
一、Fit布局,子元素将自动填满整个父容器(对元素设置宽度无效),如果容器组件中有多个子元素,则只会显示第一个子元素。二、应用举例Ext.onReady


编辑:568数据

标签:布局,元素,容器,宽度,属性