Sorting table containing components, not just text #2056
Unanswered
caleyshemc
asked this question in
General
Replies: 1 comment
-
Is there any solution for this? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to use
useGlobalFilter
to sort a table containing a mix of text and<Link>
s. However, the filtering does not work on any row value that is wrapped in a Link. For example:Here's a filterType I've made to get the Link text:
rowValue.props.children
does find "Example Link", but this doesn't work for columns with plain text instead of a Link. Is there an easier way to do this? Could I perhaps pass a "filter value" option somewhere, and filter by that?Beta Was this translation helpful? Give feedback.
All reactions