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.
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:
With this in place, developers using
mdsvex-tablecan create a user interface, perhaps } à la sticky toolbar with buttons to show more, show all and collapse rows.