博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2009年7月21日

摘要: extjs的默认皮肤很好看,但是我们还可以变换样式切换其他皮肤. 1.直接添加其他css文件换肤.皮肤文件:xtheme-olive.zip下载把皮肤文件解压,把css文件(如xtheme-olive.css)拷贝到extjs的resources目录下css文件夹里面: 解压皮肤文件,把里面的相应的 image文件夹下的目录(比如olive)拷贝到extjs的resources目录下images... 阅读全文

posted @ 2009-07-21 12:52 linFen 阅读(917) 评论(0) 推荐(1) 编辑

摘要: 1.Ext.MessageBox.alert()方法 有四个参数,为简单起见,主要介绍前面三个参数: alert( title , msg , function(){} ) 其中title,msg为必选参数,function为可选参数,在关闭弹出窗口后触发。 Ext.MessageBox.alert("title","msg"); Ext.MessageBox.a... 阅读全文

posted @ 2009-07-21 12:49 linFen 阅读(767) 评论(0) 推荐(0) 编辑

摘要: Ext.data.Storestore是一个为Ext器件提供record对象的存储容器,行为和属性都很象数据表方法:不列举继承来的方法Store( Object config )构造,config定义为{autoLoad : Boolean/Object, //自动载入baseParams : Object, //只有使用httpproxy时才有意义data : Array, ... 阅读全文

posted @ 2009-07-21 09:15 linFen 阅读(507) 评论(0) 推荐(0) 编辑

摘要: 下面为扩张grid的 代码 /** * @auther huangfeng * @class Ext.ux.GridExtend * 通用的grid */ Ext.ux.GridExtend=function(config){ Ext.QuickTips.init(); this.config=config; this.filters=this.conf... 阅读全文

posted @ 2009-07-21 09:14 linFen 阅读(2051) 评论(0) 推荐(0) 编辑

摘要: Store.getCount()返回的是store中的所有数据记录,然后使用for循环遍历整个store,从而得到每条记录。除了使用getCount()的方法外,还可以使用each()函数,如下面的代码所示。 store.each(function(record) { alert(record.get('name')); }); store.each(function(rec... 阅读全文

posted @ 2009-07-21 09:09 linFen 阅读(51161) 评论(5) 推荐(7) 编辑