Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const handleDeletionForCustomColumns = () => {
- const currentFilterModel = gridRef?.current?.api?.getFilterModel();
- if (currentFilterModel && !_.isEmpty(currentFilterModel)) {
- const customColumns = columns?.filter((colDef: ColDef) =>
- colDef.colId?.match(/^column.*$/)
- );
- const filterKeys = Object.keys(currentFilterModel).filter((key) =>
- /^column.*$/.test(key)
- );
- const validFilterKeys = filterKeys.filter((key) =>
- customColumns.some((col) => col.colId === key)
- );
- }
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement