Skip to content

Search API: No access to data object possible #120

@SmartArray

Description

@SmartArray

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:

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions