Skip to content

Add the visibleRows table context option and property to limit the number of rendered rows #2

Description

@webJose

Motivation

Having the table switch to a list definitely improves readability, but might be at the expense of having a very long vertical scroll.

Proposal

Let the table be configurable with an initial count of visible rows, and let that become a reactive property of the table context:

export type TableContextOptions {
  ...,
  visibleRows: number | null;
};

With this in place, developers using mdsvex-table can create a user interface, perhaps } à la sticky toolbar with buttons to show more, show all and collapse rows.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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