-
Notifications
You must be signed in to change notification settings - Fork 45
Open
Description
While using the search API, I was noticing that there is no way of accessing the data item in the custom search callbacks because it is not passed to the callback:
react-grid-table/src/hooks/useSearch.jsx
Lines 58 to 61 in 5e5ac47
| isValid = currentColumn.search({ | |
| value: value?.toString() || "", | |
| searchText: searchApi.validSearchText, | |
| }); |
Is there a reason why we don't pass the original data to the callback?
IMO, it should be accessible, especially because some columns might represent nested objects or arrays that are displayed using a quick summary (such as: "5 items") but the search function should actually have access to the array.
Is it worth a PR?
ilhamfadllah
Metadata
Metadata
Assignees
Labels
No labels