Is this possible to get onClick in each row? #62
Answered
by
KevinVandy
italosantana
asked this question in
Q&A
-
For each line I want to put a 'clickable' link to each profile. It is possible? |
Beta Was this translation helpful? Give feedback.
Answered by
KevinVandy
Sep 2, 2022
Replies: 1 comment 1 reply
-
Of course, just use a custom {
accessorKey: 'link',
header: 'More Info Links',
Cell: ({ cell, row }) => (
<Link href={cell.getValue<string>()}>
{row.original?.linkText}
</Link>
),
}, |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
italosantana
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Of course, just use a custom
Cell
render. You can see where I did exactly that for my props table on the docs site. Scroll down to see the full source code on that page, but here is the snippet you want.