Replies: 1 comment
-
|
Hi, I have to admit that library itself is great, but it needs more usage examples. :) table.column({
header: 'Name',
accessor: (item) => {
return { name: item.name, href: item.href };
},
cell: ({ value}) => createRender(Link, { value })
})And Link.svelte <div>
<a href="/{value.href}">{value.name}</a>
</div> |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
here is the column
I am trying to get
idto be the values ofidin the row, I tried adding this to thecreateViewModelBut the Id is still the index
Beta Was this translation helpful? Give feedback.
All reactions