pub enum DisplayStrategy {
Virtualization,
InfiniteScroll,
Pagination {
row_count: usize,
controller: PaginationController,
},
}
Expand description
The display acceleration strategy. Defaults to Virtualization
.
Variants§
Virtualization
Only visible rows (plus some extra) will be displayed but the scrollbar will seem as if all rows are there.
If the data provider doesn’t know how many rows there are (i.e. [TableDataProvider::row_count
]
returns None
), this will be the same as InfiniteScroll
.
InfiniteScroll
Only the amount of rows specified is shown. Once the user scrolls down, more rows will be loaded. The scrollbar handle will shrink progressively as more and more rows are loaded.
Pagination
Only the amount of rows specified is shown at a time. You can use the
controller
to manipulate which page of rows is shown.
Scrolling will have no effect on what rows are loaded.
Please note that this will work wether your data source implements [
PaginatedTableDataProvider
] or [TableDataProvider
] directly. Alsorow_count
can be different fromPaginatedTableDataProvider::PAGE_ROW_COUNT
.
Trait Implementations§
source§impl Clone for DisplayStrategy
impl Clone for DisplayStrategy
source§fn clone(&self) -> DisplayStrategy
fn clone(&self) -> DisplayStrategy
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more