gridpanel 列中 renderer函数参数说明
2012-10-30 15:47
155 查看
Ext中 renderer一般用于Grid中对列模型的渲染上 其详细信息记录在 Ext.grid.ColumnModel 中的setRenderer( Number col, Function fn ) 方法里 一、col : Number The column index 二、fn : Function The function to use to process the cell's raw data to return HTML markup for the grid view. The render function is called with the following parameters: 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) 一共就是六个参数
相关文章推荐
- ExtJS:GridPanel之renderer:function()和itemdblclick : function()方法参数详解
- ExtJS:GridPanel之renderer:function()和itemdblclick : function()方法参数详解
- gridpanel 列中 renderer函数参数说明
- JavaScript String.replace函数参数实例说明
- JavaScript String.replace函数参数说明
- [转载]findContours函数参数说明及相关函数
- python 函数参数的传递(参数带星号的说明)
- findContours函数参数说明
- libsvm简介和函数调用参数说明
- C和C++__带默认值参数的函数说明
- JavaScript使用cookie,参数设置,说明;读取,写入,删除函数
- javascript 函数参数限制说明
- findContours函数参数说明及相关函数
- 实例说明listen()函数第二个参数的意义与用法
- main()函数参数说明!
- 【转载】ExtJs grid 回调函数里Function()参数里的具体意义及如何带参数掉函数
- Ext.form.FormPanel定义的参数说明
- 关于Java函数传参以及参数在函数内部改变的问题——JAVA值传递与引用最浅显的说明!
- Opencv中 findContours 函数参数说明
- javascript 函数参数限制说明