Pass props to react-table ColumnDef #5334
Unanswered
kalaschnik
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Depending on your use case, you might want to either
The following snippet might help you regarding usage of meta {
accessorKey: "status",
header: "Status",
cell: ({ row, table }) => (
<Link href={`http://example.com/${table.meta.owner}`}>{row.getValue("status")}</Link>
),
}, |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I struggle to pass a prop (specifically a URL searchParam) to my ColumnDef file (i.e., columns.tsx).
Visually that means:
I've set-up a codesandbox here.
Beta Was this translation helpful? Give feedback.
All reactions