You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Version of Tan Stack Table: "@tanstack/react-table": "^8.11.3",
Hi, I'm new to tan stack table. I discover it because of shadcn UI. The problem I'm having right now as it says in the title, is that, i want to have a column in my table to have multiple accessor keys so filtering will be able to search on this too. With other column i have separate data as single accessorKey, so i dont have a problem with that, however... i tried literally all. After what I've seen.. other then the documentation and the lack of solutions online, I'm not user if accessorFn is my answer.
This is a column part of what im trying to expect
`{
accessorKey: "PCode",
header: ({ column }) => (
`
my structure of my data table is based on different filter, the search bar is searching globally, while i have different "fixed" filter static for the other fields, but i need the search bar to be able to search not only on the PCode but also on the other 2.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I'm new to tan stack table. I discover it because of shadcn UI. The problem I'm having right now as it says in the title, is that, i want to have a column in my table to have multiple accessor keys so filtering will be able to search on this too. With other column i have separate data as single accessorKey, so i dont have a problem with that, however... i tried literally all. After what I've seen.. other then the documentation and the lack of solutions online, I'm not user if
accessorFn
is my answer.This is a column part of what im trying to expect
`{
accessorKey: "PCode",
header: ({ column }) => (
),
filterFn: (row, id, value) => {
return value.includes(row.getValue(id))
},
cell: ({ row }) => {
const rowData = row.original as unknown as ItemData;
},
`
my structure of my data table is based on different filter, the search bar is searching globally, while i have different "fixed" filter static for the other fields, but i need the search bar to be able to search not only on the PCode but also on the other 2.
Thanks in adavance for the help
Beta Was this translation helpful? Give feedback.
All reactions