-
Notifications
You must be signed in to change notification settings - Fork 55
Open
Description
I've been using @tanstact\table for a few years now, and I've found a few ways to make using it a lot more ergonomic.
- Improve the dropdown for hiding/showing columns.
To do this, we can add agetAllHeadersusing table features so that when we want to get the dropdown for showing/hiding, we can just dotable.getAllHeaders().flatMap((hg) => hg.headers)and use that to render the dropdown. This means the columns definition is the source of truth, and we don't need to do anything else for this feature to work. - Improve adding filters to columns.
To enable this, we can add a filter to the column meta that can receive custom Solid components. This way they can colocate the filter with the column definition as well.
I can make a repo with these changes if people think this is a good idea.
Metadata
Metadata
Assignees
Labels
No labels