revogrid
revogrid copied to clipboard
document the cell renderer in more detail
It would be helpful if the cell renderer documentation included some more details about the callback function, something along the lines of:
The props
argument provides access to the column, row, and cell properties. See ColumnDataSchemaModel
in the interface file for details of the data provided.
Hi @martindemello
props is Object has:
- column: column property like size, filter, sort, pin, drag, read only, column name, column logic name, cellTemplate, cellProperties...
- data: grid data source
- model: row data ( data[index] )
- prop: column logic name
- rowIndex: row index
please reading it in debug mode on chrome:
hi @van-huyen , i figured it out by reading through the code, my point is that i should not have had to resort to that (or to looking up the chrome debugger), it should have been in the documentation.
I agree. Currently, the documents explain only about 30%. Maybe the development team doesn't seem to have time.