T
TanStack2y ago
optimistic-gold

How do I filter text inside cell?

My cell has accessorKey of type. It renders title and description transaction-col.tsx
{
accessorKey: "type",
header: "Type",
cell: ({ row }) => {
const { description, title } = row.original;

return (
<div className="flex flex-col">
<span className="text-base font-medium">{title}</span>
<TypographySmall className="text-gray-500">
{description}
</TypographySmall>
</div>
);
},
},
{
accessorKey: "type",
header: "Type",
cell: ({ row }) => {
const { description, title } = row.original;

return (
<div className="flex flex-col">
<span className="text-base font-medium">{title}</span>
<TypographySmall className="text-gray-500">
{description}
</TypographySmall>
</div>
);
},
},
Here inside description, I have user's email. I want to filter that out.
1 Reply
optimistic-gold
optimistic-goldOP2y ago
Nvm found another way. I create another cell containing description. and Hide it

Did you find this page helpful?