vanilla js implementation | No Framework #4928
-
Is there an existing example of implementing table using the @tanstack/table-core. `import { createTable } from '@tanstack/table-core' const table = createTable(options)` I tried to implement like so: ` const columnHelper = createColumnHelper(); const data: Person[] = [ const table = createTable({
|
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 29 replies
-
Did you ever figure this out? Running into the same issue now. |
Beta Was this translation helpful? Give feedback.
-
For those landing here you need to have a proper
The should solve the exception you getting in the Then when doing the actual rendering, you need to do this: First you need a
Then it is used like this when rendering the table
|
Beta Was this translation helpful? Give feedback.
-
I couldn't even figure out how to import the library, would love a full example. Trying to get this working in a simple html template for now. Ultimately in an ASP.NET Razor Pages project |
Beta Was this translation helpful? Give feedback.
-
+1 for vanilla examples |
Beta Was this translation helpful? Give feedback.
-
Here we go, a first take at the PR for a basic and pagination example using Vanilla js/ts (without any dependency except nanostores): @KevinVandy let me know what you think |
Beta Was this translation helpful? Give feedback.
-
Vanilla examples basic, pagination and sorting are now available here:
Let's mark this discussion thread as answered. |
Beta Was this translation helpful? Give feedback.
Vanilla examples basic, pagination and sorting are now available here:
Let's mark this discussion thread as answered.