T
TanStack4y ago
multiple-amethyst

Passing prop for action button on table cell

i know i can render a component as cell by returning the component on cell option inside ColumnDef, but how to pass the props into those component?
1 Reply
flat-fuchsia
flat-fuchsia4y ago
You can use the renderComponent helper exported by svelte table like: renderComponent(Comp, props)

Did you find this page helpful?