原创 extjs 总结
原创? extjs 总结
# Ext.namespace(‘com.faceye.layout’);
# Ext.BLANK_IMAGE_URL = ’scripts/ext/resources/images/vista/s.gif’;
emptyText:’请选择您喜欢的颜色’,
user = Ext.get(‘user’);// 生成Ext element元素
el = new Ext.Element(user);
<button onclick=”location.href=’www.baidu.com’;”>点击链接到百度</button>
window.location.reload(true); //重载页面
chooser.view.on(‘contextmenu’, function(d, i, n, e){//元素加menu
//ext 窗体操作
//Ext.WindowMgr.each(function(w){w.hide()});//window.location.reload(true);
layout:’fit’ ‘border’ ‘table’ ‘column’ ‘card’
Ext.QuickTips.init();
disabled:ture,
hidden :true,
closeAction: ‘hide’ //关闭按钮效果
target=”_blank”//弹出新窗口
render(document.body);
renderTo: document.body,
applyTo: ‘local-states’
animate:true,?????????????? // 生机勃勃 特效
layoutOnTabChange :true,??? //tabPanel doLayout
labelAlign: ‘left’,??????? //form 标签左对齐
hideLabel :booler????????? //隐藏标签
contentEl :’cartT’,??????? //将元素内容读入到ext组件中。
listeners:{check:onCheck},
hiddenName:’server’,?????? //commbox 获取值时,返回valueField :”retrunValue”,
//否则返回?? displayField: “displayText”,
emptyText:’请输入标题’???? //textField为空时显示的内容
anchor:’90%’?????????????? //占用百分之几的位置
closable: true,?????????? //是否现实关闭按钮
modal:true,?????????????? //是否模态方式显示窗口
border:true,????????????? //边框宽度
bodyBorder :true,
bodyStyle:’padding:5px’, //边的类型设置了内补丁,空余5像素。
collapsible:true,?? //工具条添加收缩按钮
disabled:true,??????????? //窗体状态灰色显示,且不可用
collapsed:coll,?????????? //窗体状态收缩、true收起–与expandOnShow一起用
tools:tools,????????????? //工具条
expandOnShow : false,???? //显示的时候扩张true为显示
autoWidth:true,?????????? //自动调节宽度
plain:true,?????????????? //将标签页头的背景设置为透明
closable:true,??????????? //有关闭按钮
closeAction: ‘hide’,????? //关闭按钮 隐藏窗体
frame:false,????????????? //窗体没有背景
header:false,???????????? //有窗体头部
autoScroll: true,????????? //窗体自动出先滚动条
shadow:false,???????????? //窗体影子
draggable:false,????????? //窗体是否可拖动
resizable:false,????????? // 窗体不可改变大小
labelSeparator:’:’,????? //标题的分隔符号我们用中文冒号代替英文的冒号(labelSeparator:’:’)
isVisible();????????????? //窗体显示
maximizable:true,???????? //放大缩小窗口
focus(); //焦点
minWidth :30,????????????? //按钮最大宽度
<a ext:qtip=”sssss”>ssss</a>
buttons: [{//----------------------------------button
id: 'ok-btn',
text: '选择',
handler: this.doCallback,
scope: this
}]
Store 读取回调后的json数组
‘load’: {fn:function(s){
s.getAt(0).get(“expHost”)