随笔分类 -  Extjs

basicform 与 store
摘要:今天做文章搜索 想都没想直接用了个form,后来发现不对了。我得把Store reload阿,用 form 有什么用啊。把 store.baseParams 的值设置好 reload 就行。不过有很多参数要加上去阿。要是form 可以把所有的表单字段的键 值的集合拿到就好了。一看API basicform 还真有这个函数。store.baseParams= form.getValues();sto... 阅读全文
posted @ 2008-12-24 17:42 笑笑江南 阅读(322) 评论(0) 推荐(0)
gridpanel中拖拽排序
摘要:[代码]hello 阅读全文
posted @ 2008-12-23 14:54 笑笑江南 阅读(2977) 评论(0) 推荐(0)
Xtemplate 的使用
摘要:Xtemplate 知识点 : 迭代: 对 kids 迭代 分支 占位符 {variable} name:{name} 表达式 在[ ]中的代码被认为是表达式 在[ ] 中可以使用下列变量 * values: 当前对象的引用,通过这个对象你可以直接改变重写模板所用的数据 * parent: The scope (values) of the ancestor template. * ... 阅读全文
posted @ 2008-11-29 17:33 笑笑江南 阅读(477) 评论(0) 推荐(0)
applyTo ,render, contentel,el,applytomarkup 的区别
摘要:applyTo: The id of the node, a DOM node or an existing Element corresponding to a DIV that is already present in the document that specifies some structural markup for this component. When applyTo i... 阅读全文
posted @ 2008-11-07 00:58 笑笑江南 阅读(1331) 评论(1) 推荐(0)
ext 布局
摘要:border 布局 这是一个多单元格,面向应用UI的布局样式,在区域范围内自动断开和填充。 border 布局没有任何直接的属性除了继承的。 border 配合 region 使用,用border 布局而没有 region 报错。 border 布局 元素不会撑开容器,只会自动填满容器。 table 布局 table 布局使你方便的呈现html表格。可以指定总共多少列。 并且rowspan、... 阅读全文
posted @ 2008-10-29 14:49 笑笑江南 阅读(412) 评论(0) 推荐(0)
struts2 的 json 格式化
摘要:struts2 的 json 格式化 普通属性 格式化成键值对。map 格式化成单个对象,list 格式化成对象数组。 int totalCount=100; 格式化成 "totalCount":100 Map total = new HashMap(); total.put("totalCoun... 阅读全文
posted @ 2008-10-27 10:46 笑笑江南 阅读(1624) 评论(0) 推荐(0)