fix: send data of that cell to formatter
This commit is contained in:
parent
d29615bca9
commit
49cc051392
@ -33,6 +33,7 @@ export default function filterRows(rows, filters, data) {
|
|||||||
function getFilterMethod(rows, data, filter) {
|
function getFilterMethod(rows, data, filter) {
|
||||||
const getFormattedValue = cell => {
|
const getFormattedValue = cell => {
|
||||||
let formatter = CellManager.getCustomCellFormatter(cell);
|
let formatter = CellManager.getCustomCellFormatter(cell);
|
||||||
|
data = data.getData(cell.rowIndex);
|
||||||
if (formatter && cell.content) {
|
if (formatter && cell.content) {
|
||||||
cell.html = formatter(cell.content, rows[cell.rowIndex], cell.column, rows[cell.rowIndex], filter, data);
|
cell.html = formatter(cell.content, rows[cell.rowIndex], cell.column, rows[cell.rowIndex], filter, data);
|
||||||
return stripHTML(cell.html);
|
return stripHTML(cell.html);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user