随笔分类 - EXTJS 3.0
EXTJS 3.0
摘要:{ xtype: "fieldcontainer", layout: "hbox", items: [{ fieldLabel: '开始时间', name: 'Create...
阅读全文
摘要:var insideGridStore = Ext.create('Ext.data.Store', { model: 'CarComponents',//这个地方CarComponents不是一个对象,而是一个类 pageSize: limit...
阅读全文
摘要:extjs控件有两个属性:一个是iconCls;另一个是icon。通过这两个属性可以对控件添加图标1.直接引用图标路径icon: '../icons/application_view_detail.png',//引用图标2.通过css文件调用图标css文件代码:.Applicationviewdet...
阅读全文
摘要:bodyStyle: 'overflow-x:hidden; overflow-y:scroll',//显示滚动 文章来源:http://www.cnblogs.com/exmyth/archive/2013/04/15/3021861.html
阅读全文
摘要:1.可以使用add(Ext.data.Record[] records)或者add(Ext.data.Record record)向store末尾添加一个或多个record。如:var newRecord=new PersonRecord({name:"Tom",age:22}); store.ad...
阅读全文
摘要:将时间\/Date(1432828800000+0800)\/"转换成:“年-月-日”//时间转换function ChangeDateFormat(val) { if (val != null) { var datetime = new Date(parseInt(val.replace("/Da...
阅读全文
摘要:var lstAddRecord = new Array(); store.each(function (record) { lstAddRecord.push(record.data); ...
阅读全文
摘要:1.下面是一个btn按钮的代码,默认不可以点击{ id: 'skipStep3', disabled: true,//默认不可点击 text: "跳转第三步", handler: ...
阅读全文
摘要:代码:{xtype:'label',id:'label',labelSeparator :'', // 去掉laebl中的冒号fieldLabel : '这是个label'}赋值:Ext.getCmp('label').setText("我是label!哈哈");
阅读全文
摘要:代码: labelSeparator: '', // 去掉laebl中的冒号labelWidth: 10,//控件label的长度
阅读全文
摘要:下面是一个登陆页面调用的EXTJSlogin function,通过 url: '/UI/HttpHandlerData/Login/Login.ashx',获取返回登陆账户和密码!Ext.onReady(function () { login = function (target) { ...
阅读全文
摘要:columns: [ { header: '序号', xtype: 'rownumberer', align: 'center', width: 100 }, { header: 'CompanyId', dataInde...
阅读全文
摘要://这里要跳转页面 var subWindow = new Ext.Window({ title: '窗口', width: width, height: height, ...
阅读全文
摘要:EXTJS API 链接:http://docs.sencha.com/extjs/5.0.0/http://docs.sencha.com/extjs/4.2.2/http://docs.sencha.com/extjs/4.2.1/有中文版 API 网页:http://extjs-doc-cn....
阅读全文
摘要:1、Ext.grid.GridPanel 主要配置项: store:表格的数据集 columns:表格列模式的配置数组,可自动创建ColumnModel列模式 autoExpandColumn:自动充满表格未用空间的列,参数为列id,该id不能为0 stripeRows:表格是否隔行换色,默认为fa...
阅读全文
摘要:var toolbarCarType = new Ext.Toolbar({ //width: 500, //autoWidth:true, pressed: false, toggleGroup: 'butToolbar', ...
阅读全文
摘要:EXTJS combo 控件:1.先定义store//年款var comboData_ReleasYear = [ ['0', '2010'], ['1', '2011'], ['2', '2013'], ['3', '2014']];2.定义combo控件{ ...
阅读全文
摘要:最近工作,发现在Extjs中自定义Store的功能挺多,特意在此做笔记,几下来,具体代码如下:1.定义Store//定义Storevar ItemSelectorStore = new Ext.data.ArrayStore({ fields: [ { name: 'BaseIn...
阅读全文
摘要:最近发现项目中FormPanel 里面需要 增加 button,的模块比较多,具体代码如下:var eastPanelForm_Dele = new Ext.form.FormPanel({ id: 'eastPanelForm_Dele', width: 250, border:...
阅读全文
摘要:这是在Extjs 中插入html 控件label!html: "您共选中了"获取label值:document.getElementById('howMany').innerText赋值label值:document.getElementById('howMany').innerText = "这是...
阅读全文