fix: send data to formatter

This commit is contained in:
Shariq Ansari 2023-12-21 13:27:43 +05:30
parent 8f074a80c2
commit 48d5b97e55

View File

@ -34,7 +34,7 @@ function getFilterMethod(rows, data, filter) {
const getFormattedValue = cell => { const getFormattedValue = cell => {
let formatter = CellManager.getCustomCellFormatter(cell); let formatter = CellManager.getCustomCellFormatter(cell);
if (formatter && cell.content) { 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 stripHTML(cell.html);
} }
return cell.content || ''; return cell.content || '';