ext js renderer的使用方法
2011-08-25 19:45
369 查看
renderer函数默认可以带上以下参数
1、value : Object
The data value for the cell.(单元格的值)
2、metadata : Object
An object in which you may set the following attributes一个可以设置下边两个属性的对象)
**css : String
A CSS class name to add to the cell's TD element.
(给单元格的TD元素设置CSS的class名称)
**attr : String
An HTML attribute definition string to apply to the data container element within the table cell (e.g. 'style="color:red;"').
(给单元格元素增加一个html的属性)
3、record : Ext.data.record
The Ext.data.Record from which the data was extracted.
(该字段所在行对应的Ext.data.Record对象(整条记录))
4、rowIndex : Number
Row index(行号)
5、colIndex : Number
Column index(列号)
6、store : Ext.data.Store
The Ext.data.Store object from which the Record was extracted.
(数据源对象 就是Grid的store/ds)
一共就是六个参数
1、value : Object
The data value for the cell.(单元格的值)
2、metadata : Object
An object in which you may set the following attributes一个可以设置下边两个属性的对象)
**css : String
A CSS class name to add to the cell's TD element.
(给单元格的TD元素设置CSS的class名称)
**attr : String
An HTML attribute definition string to apply to the data container element within the table cell (e.g. 'style="color:red;"').
(给单元格元素增加一个html的属性)
3、record : Ext.data.record
The Ext.data.Record from which the data was extracted.
(该字段所在行对应的Ext.data.Record对象(整条记录))
4、rowIndex : Number
Row index(行号)
5、colIndex : Number
Column index(列号)
6、store : Ext.data.Store
The Ext.data.Store object from which the Record was extracted.
(数据源对象 就是Grid的store/ds)
一共就是六个参数
相关文章推荐
- node.js中的path.extname方法使用说明
- node.js中的path.extname方法使用说明
- jQuery.cookie.js 使用方法
- Idea使用记录--每次修改JS文件都需要重启Idea才能生效解决方法
- node.js中的path.isAbsolute方法使用说明
- js apply/call/caller/callee/bind使用方法与区别分析
- 购物车增加、减少商品时动画效果:jQuery.Fly.js插件使用方法
- js cookie使用方法详解
- 使用js替代jsp中request.getParameter等方法
- Bootstrap树形菜单插件TreeView.js使用方法详解
- 缓冲加载图片的 jQuery 插件 lazyload.js 使用方法详解
- 使用Firebug对js进行断点调试的图文方法
- dialog使用方法(同一页面,调用一个js代码,实现多个不同样式的弹窗)
- js中apply方法的使用
- Node.js中rmdirSync方法的使用说明
- js中使用replace方法完成某个字符的转换
- Bootstrap树形菜单插件TreeView.js使用方法详解
- node.js中的buffer.copy方法使用说明
- 使用jquery.form.js实现图片上传的方法
- js中function()使用方法