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
How to change accessorKey value from userId to userId2 when retailerId value exists
i gone through accessorFn but it doest help me to solve the above issue and i modified column value in DataTableColumnHeader like This <DataTableColumnHeader column={{ ...column, id:"userId2",columnDef: {accessorKey:"userId2",id:"userId2"} }} title="User Id" /> but it doest help me
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.
-
{ accessorKey: "userId", header: ({ column }) => ( <DataTableColumnHeader column={column} title="User Id" /> ), cell: ({ row }) => ( <label>{row?.original?.subRetailerId ?? row?.original?.retailerId}</label> ), },
How to change accessorKey value from userId to userId2 when retailerId value exists
i gone through accessorFn but it doest help me to solve the above issue and i modified column value in DataTableColumnHeader like This
<DataTableColumnHeader column={{ ...column, id:"userId2",columnDef: {accessorKey:"userId2",id:"userId2"} }} title="User Id" />
but it doest help meBeta Was this translation helpful? Give feedback.
All reactions