Renderer:function (value, Cellmeta, record, RowIndex, ColumnIndex, store) {
Todo
}
1.value is the value of the current cell
2.cellmeta saved is Cellid cell id,id do not know what to do, it seems to be a column number, CSS is the CSS style of this cell.
3.record is all the data in this line, what you want, record.data["id") so you get it.
4.rowIndex is the line number, not the meaning of the number from the beginning, but the calculation of the results after paging.
5.columnIndex column number.
6.store actually this is the DS that you pass when you construct the table, which means that all the data in the table
Simple example:
Renderer:function (value) {
if (value = = ' Male ') {
Return "<span style= ' color:red;font-weight:bold; ' > Male </span> ";
} else {
Return "<span style= ' color:green;font-weight:bold; ' > Women </span> ";
}
END
The renderer of ExtJS