Extjs开发随记
hnsfxtx
正在学习中
展开
-
ComboBox自动加载值
/** * UserType 用户类别 model 定义 */ Ext.define('Base.userType.Model', { extend: 'Ext.data.Model', scope:this, fields: [ {name: 'id', type: 'int'}, //该类型为int时,可自动选择,string时需要手动加载原创 2016-06-03 21:53:11 · 280 阅读 · 0 评论 -
自定义组件,加入table防止内存溢出
/** * 区域选择comboBox */ Ext.define('Base.area.ComboBox',{ extend:'Ext.form.ComboBox', id:'cmbArea', name:'areaId', store: Ext.create('Base.area.Store'), queryMode: 'local', labelWidth:60, ed原创 2016-06-03 21:58:34 · 271 阅读 · 0 评论 -
为extjs的TabPanel 添加右键关闭效果(修改一个bug)
效果图如下: 因为我用的是extjs-4.2.1.883 这个版本,右键菜单的相关源代码需要在发布包下的源代码(examples\ux)下去查找(Ext.ux.BoxReorderer,Ext.ux.TabCloseMenu,Ext.ux.TabReorderer,Ext.ux.TabScrollerMenu) 在首页面配置路径: ? 1转载 2016-06-25 13:53:17 · 408 阅读 · 0 评论