Merge pull request #185 from shariquerik/send-data-to-formatter1
fix: send data of that cell to formatter
This commit is contained in:
commit
f0044603a1
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user