8 releases
new 0.12.1 | May 20, 2024 |
---|---|
0.12.0 | May 20, 2024 |
0.11.4 | May 20, 2024 |
0.10.0 | May 13, 2024 |
#340 in Command-line interface
972 downloads per month
Used in rat-widget
1MB
2K
SLoC
Table widget based on ratatui.
Could be used as a drop-in replacement for the ratatui table. But that's not the point of this widget.
This widget uses the TableData trait instead of rendering all the table-cells and putting them into a Vec. This way rendering time only depends on the screen-size not on the size of your data.
More bullet points:
- Row and Column offset for rendering.
- Pluggable selection with TableSelection
- Allows row/column/cell selection.
- Row/column/cell selection + Header/Footer selection each with its own style.
- Basic key/mouse handling present.
Eventhandling is currently crossterm only. In practice event-handling is calling 1 or 2 functions on the state, so this should be easy to map to other systems. (Contributions welcome :)
Dependencies
~6–12MB
~119K SLoC