Hi,
We have a tile section in our project, where we filter record based on a condition.
On click of the tile the parent record will be filtered out . We want the parent to open all the nodes. I have shared the code below.
{
id: 4,
text: "FILTER",
filterFn: (record) => {
if (record.get("flag") !== parent) {
return false;
}
let promisedDate = record.get("promiseddate"),
endDate = record.get("endDate");
if (promisedDate instanceof Date) {
return promisedDate < endDate;
} else {
return new Date(promisedDate) < endDate;
}
},
countFn: (record) => {
if (record.get("flag") !== parent) {
return false;
}
let promisedDate = record.get("promiseddate"),
endDate = record.get("endDate");
if (promisedDate instanceof Date) {
return promisedDate < endDate;
} else {
return new Date(promisedDate) < endDate;
}
},
},
How can I filter so that I can get along with the corresponding children nodes