Crates.io | rat-ftable |
lib.rs | rat-ftable |
version | 0.28.1 |
source | src |
created_at | 2024-05-13 03:42:27.821054 |
updated_at | 2024-12-12 16:47:44.524291 |
description | ratatui table widget for large data |
homepage | |
repository | https://github.com/thscharler/rat-ftable |
max_upload_size | |
id | 1237904 |
size | 1,676,488 |
This crate is a part of rat-salsa.
For examples see rat-ftable GitHub.
Can 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.
There is a second trait TableDataIter that works better if you only have an Iterator over your data.
Caveat: If the Iterator doesn't have an efficient skip() or if you can't give the number of rows this will iterate all your data for the necessary information. This might slow down everything a bit.
More bullet points:
Eventhandling is currently crossterm only.