diff --git a/docs/option/columns.createdCell.xml b/docs/option/columns.createdCell.xml index 9eabc36a3..e44e8662b 100644 --- a/docs/option/columns.createdCell.xml +++ b/docs/option/columns.createdCell.xml @@ -10,7 +10,7 @@ The `tag TD` node that has been created - The data that will be displayed in the cell. If you use `dt-init columns.render` to modify the data, the modified data will be given here. If you need to access the raw data, use the `rowData` parameter for this function. + Cell data. If you use `dt-init columns.render` to modify the data, use `$(cell).html()` to get and modify the rendered data. The information given here is the original and unmodified data from the data source. Data source object / array for the whole row diff --git a/js/core/core.draw.js b/js/core/core.draw.js index 8a0bf05e7..72804380c 100644 --- a/js/core/core.draw.js +++ b/js/core/core.draw.js @@ -65,7 +65,7 @@ function _fnCreateTr ( oSettings, iRow, nTrIn, anTds ) if ( oCol.fnCreatedCell ) { oCol.fnCreatedCell.call( oSettings.oInstance, - nTd, _fnGetCellData( oSettings, iRow, i, 'display' ), rowData, iRow, i + nTd, _fnGetCellData( oSettings, iRow, i ), rowData, iRow, i ); } }