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
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
-
I tried to add custom attribute to a row
With the name of “test” = true
I was not successful
I tried the following code
table.options.meta?.updateData(row.index, "test", true)
This my updateData function
meta: {
updateData: (rowIndex, columnId, value) =>
setData((prev) =>
prev.map((row, index) =>
index === rowIndex
? {
...prev[rowIndex],
[columnId]: value,
}
: row
)
),
},
The error I got is “Cannot read properties of undefine”
Any help how to add a custom attribute to a row will be welcome
Beta Was this translation helpful? Give feedback.
All reactions