-
I have an array as a value in data in useReactTable hook like, ["Sunday, "Wednesday"] If user searches "sunday" it should appear |
Beta Was this translation helpful? Give feedback.
Answered by
soham2k06
May 10, 2024
Replies: 1 comment
-
I just got the answer: { We can use accessorFn for this |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
soham2k06
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I just got the answer:
{
accessorKey: 'favourite_days',
accessorFn: (row) => row.favourite_days.join(', '),
header: 'Favourite day(s)',
cell: ({ row }) => row.getValue('favourite_days'),
},
We can use accessorFn for this