Merge pull request #185 from shariquerik/send-data-to-formatter1

fix: send data of that cell to formatter
This commit is contained in:
Shariq Ansari 2023-12-21 13:39:16 +05:30 committed by GitHub
commit f0044603a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -33,6 +33,7 @@ export default function filterRows(rows, filters, data) {
function getFilterMethod(rows, data, filter) {
const getFormattedValue = cell => {
let formatter = CellManager.getCustomCellFormatter(cell);
data = data.getData(cell.rowIndex);
if (formatter && cell.content) {
cell.html = formatter(cell.content, rows[cell.rowIndex], cell.column, rows[cell.rowIndex], filter, data);
return stripHTML(cell.html);