Skip to content
Discussion options

You must be logged in to vote

@fitimbytyqi option two really smart idea , i use it and its work perfectly
example :

brands-table.tsx

export function BrandsTable({ columns, data }: DataTableProps) {
    const t = useTranslations();
   ...
    const table = useReactTable({
        data,
        meta: { t },
        columns,
        state: {
            sorting,
            columnVisibility,
            rowSelection,
            columnFilters,
        },
        enableRowSelection: true,
        ...
    });
....

brands-columns.tsx

 {
        accessorKey: "username",
        header:  ({ column ,table}) => {
            return (
                <DataTableColumnHeader
                    column={column}
                    t…

Replies: 2 comments 9 replies

Comment options

You must be logged in to vote
1 reply
@fitimbytyqi
Comment options

Comment options

You must be logged in to vote
8 replies
@fitimbytyqi
Comment options

@just-abdou
Comment options

@fitimbytyqi
Comment options

@issam-seghir
Comment options

Answer selected by fitimbytyqi
@fitimbytyqi
Comment options

@Re9iNee
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
6 participants