Merge pull request #184 from shariquerik/send-data-to-formatter
fix: send data to formatter
This commit is contained in:
commit
d29615bca9
@ -34,7 +34,7 @@ function getFilterMethod(rows, data, filter) {
|
||||
const getFormattedValue = cell => {
|
||||
let formatter = CellManager.getCustomCellFormatter(cell);
|
||||
if (formatter && cell.content) {
|
||||
cell.html = formatter(cell.content, rows[cell.rowIndex], cell.column, rows[cell.rowIndex], filter);
|
||||
cell.html = formatter(cell.content, rows[cell.rowIndex], cell.column, rows[cell.rowIndex], filter, data);
|
||||
return stripHTML(cell.html);
|
||||
}
|
||||
return cell.content || '';
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user