Skip to content

Improving the ergonomics of the data table #188

@MAST1999

Description

@MAST1999

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.

  1. Improve the dropdown for hiding/showing columns.
    To do this, we can add a getAllHeaders using table features so that when we want to get the dropdown for showing/hiding, we can just do table.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.
  2. 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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions