Skip to content
This repository has been archived by the owner on Jan 15, 2022. It is now read-only.

Adding the ability to use complex forms in filters #385

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

futuraprime
Copy link

This change allows the user to put more complex formatting into the table (e.g. React components) and still filter the table based on those rows.

Currently, while the custom sort functions are fed the raw contents of each cell (& so get react components directly if they're being used), the filter functions get a stringified version, meaning everything gets filtered against [object Object], which is not especially useful. This tries to preserve all current use cases, but in the event that toString() returns [object Object], it sends the object (presumably a React component, though it could be something complex within the data array.)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant