随笔分类 -  JavaScript - ExtJS

摘要:类全称: Ext.form.Field 继承自于: Ext.BoxComponent 表单元素的基类,提供事件操作、尺寸调整、值操作与其它功能。 配置项 1、fieldLabel : Strin... 阅读全文
posted @ 2010-11-09 10:15 Jamie 阅读(2996) 评论(0) 推荐(0)
摘要:配置参数 参数类型 说明 animCollapse Boolean 设置面板折叠或展开时是否显示动画效果,如果 Ext.Fx 类可用则默认 为true,否则为fasle。 applyTo Mixed ... 阅读全文
posted @ 2010-11-08 15:46 Jamie 阅读(1533) 评论(0) 推荐(0)
摘要:在ExtJS的使用过程中发现:Ext.ux.grid.RowEditor的使用与Ext.grid.GridPanel中ColumnModel的定义可能存在一些冲突. 假如GridPanel的cm的定... 阅读全文
posted @ 2010-10-27 17:47 Jamie 阅读(1262) 评论(1) 推荐(0)
摘要:布局(layout)其实是由行和列组成,分成由左往右和由上往下两个方向,由左往右叫column,由上往下叫form。   例如: // 定义一行组件 {   &... 阅读全文
posted @ 2010-10-27 15:48 Jamie 阅读(1132) 评论(0) 推荐(0)
摘要:Ext.grid.GridPanel的width、height项不支持100%的设置方式,可用以下方式初始化Grid: width: Ext.get("content").getW... 阅读全文
posted @ 2010-10-27 10:21 Jamie 阅读(2484) 评论(0) 推荐(0)
摘要:Ext.form.NumberField({         allowDecimals: false,  &... 阅读全文
posted @ 2010-10-26 16:53 Jamie 阅读(3506) 评论(0) 推荐(0)
摘要:http://qwikioffice.com/desktop-demo/ http://recorall.org/jsdesk/ http://jeamy.werk1.at/ http://www.d... 阅读全文
posted @ 2010-10-26 16:02 Jamie 阅读(4576) 评论(0) 推荐(0)
摘要:1、Ext.grid.GridPanel 主要配置项: store:表格的数据集 columns:表格列模式的配置数组,可自动创建ColumnModel列模式 autoExpandColumn:自动充... 阅读全文
posted @ 2010-10-26 09:38 Jamie 阅读(3268) 评论(0) 推荐(2)
摘要:js: //右键菜单 grid.addListener('rowcontextmenu', rightClickFn);//右键菜单代码关键部分 var rightClick = new Ext.me... 阅读全文
posted @ 2010-10-25 14:02 Jamie 阅读(5007) 评论(0) 推荐(0)
摘要:1、Ext.form.Action      配置项:         ... 阅读全文
posted @ 2010-10-23 17:00 Jamie 阅读(3587) 评论(0) 推荐(0)
摘要:设置DateField的默认值,可以直接给value属性赋值,如:value:  '01/01/2010, 如果要设置默认值为当天的日期,可以如下设置:value: new Date &#... 阅读全文
posted @ 2010-10-23 13:56 Jamie 阅读(4782) 评论(0) 推荐(0)
摘要:NumberField控件 、TriggerField 、combobox、DateField 控件 。。。。 阅读全文
posted @ 2010-10-23 11:02 Jamie 阅读(9983) 评论(0) 推荐(0)
摘要:一些通用的控件属性,可以用Ext.override重写并放在公共文件中,这样所有引用此公共文件的页面的控件,将自动继承这些属性. 例如:需要让所有Grid的行号在翻页后连续递增并且其宽度自动设为30... 阅读全文
posted @ 2010-10-21 14:58 Jamie 阅读(7484) 评论(0) 推荐(1)
摘要:当Record对应的字段定义为string类型时, 作为FormPanel的Items相应的DateField将无法显示出数据…… 阅读全文
posted @ 2010-10-14 08:58 Jamie 阅读(414) 评论(0) 推荐(0)
摘要:多选,如何获得每行的行号: function getlineNum(){    var sm=titleGird.getSelectionModel(); // 获得grid的S... 阅读全文
posted @ 2010-10-06 10:58 Jamie 阅读(4910) 评论(0) 推荐(0)
摘要:xtype            Class ------------- ... 阅读全文
posted @ 2010-09-27 15:23 Jamie 阅读(484) 评论(0) 推荐(0)
摘要:   1. var model = grid.getSelectionModel();      2. model.selectAll();... 阅读全文
posted @ 2010-09-01 09:56 Jamie 阅读(1620) 评论(0) 推荐(0)
摘要://二维数组,保存年份的值和文本,文本作显示用 var year = [['2005', '2005'], ['2006', '2006'], ['2007', '2007'],         ['2008', '2008'], ['2009', '2009'], ['2010', '2010'],   &... 阅读全文
posted @ 2010-08-27 16:43 Jamie 阅读(1704) 评论(0) 推荐(0)
摘要:属性 a) activeItem: 渲染布局时激活的子元素。 b) applyTo: 指定渲染对象。 c) autoDestroy:当容器的子元素从容器中移除时是否自动销毁。 d) autoExpandColumn:指定自动填充表格剩余区域的列id e) autoExpandMax:可自动扩张的最大宽度。 f) autoExpandMin:可自动扩张的最小宽度 g) autoHeight: 自动... 阅读全文
posted @ 2010-08-18 14:16 Jamie 阅读(1134) 评论(0) 推荐(0)
摘要:学习extjs,都说spket好用,果然不错。现在将安装总结如下: 1、选择Help -> Software Updates -> Find and Install...-> Search for new features to install ->New remote site... Name: "Spket", Url: http://www.spk... 阅读全文
posted @ 2010-07-31 15:33 Jamie 阅读(352) 评论(0) 推荐(0)