Skip to content

Add scrolling ability to Table and Lists components. #111

@TeseySTD

Description

@TeseySTD

Add scrolling ability to Table and Lists components

Currently, Table and List components render all content at once, which causes poor UX when dealing with large datasets. Users cannot navigate through content that exceeds the viewport.

Why this is needed:

  • Large tables/lists cause rendering slowdowns and consume excessive memory
  • Users have no way to navigate content that doesn't fit on screen
  • Terminal applications commonly need paginated views for logs, data tables, and long lists

How I suggest implementing it
I think the simple and elegant solution in TUI case is scrolling by item, in table by each row. The developer can set the number of items to be shown (page size) and the number of items to scroll at one time.

Current progress:
I almost implemented scrolling in SpectreTable component (currently fixing some offset issues) but I already have the ability to scroll by rows using keyboard arrows and Page Up/Down.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions