const columns = useMemo(() => [
{
header: 'Actions',
accessorKey: 'actions',
cell : (info) => (
//Some function internally triggers some state to set the TagInput
<Actions element={info.row.original} />
)
},
{
header: 'Tag',
accessorKey: 'tag',
cell: (info) => (
// Has double click behaviour in-built. externalEditValue is the value i need to set base on the rename action being clicked.
<TagInput
value={info.row.original.tag}
externalEditValue={???} // set the value based on the Actions triggering a rename. -->
/>
)
}
])
const columns = useMemo(() => [
{
header: 'Actions',
accessorKey: 'actions',
cell : (info) => (
//Some function internally triggers some state to set the TagInput
<Actions element={info.row.original} />
)
},
{
header: 'Tag',
accessorKey: 'tag',
cell: (info) => (
// Has double click behaviour in-built. externalEditValue is the value i need to set base on the rename action being clicked.
<TagInput
value={info.row.original.tag}
externalEditValue={???} // set the value based on the Actions triggering a rename. -->
/>
)
}
])