T
TanStack2y ago
stormy-gold

custom logic on columns.tsx

So i have my table rendered and I pass in data to the table that looks like this as u can see, for some objects, there is a userID field. I want to basically make it, if their is a userID on the object, then display a checkbox that is checked as true, if there isn't make a checkbox that is check as false. i got this part figured out. if they uncheck / check, it will run a fetch request to my backend db to remove the id from the specified object is this possible? my current columns.tsx: https://gist.github.com/navincodesalot/efc4c65ae15cf7ce963f96274232a087
2 Replies

Did you find this page helpful?