leptos-windowing

Crates.ioleptos-windowing
lib.rsleptos-windowing
version0.1.0
created_at2025-08-27 17:41:07.097155+00
updated_at2025-08-27 17:41:07.097155+00
descriptionCommon functionality for pagination and virtualization with cached loading.
homepage
repositoryhttps://github.com/Synphonyte/leptos-windowing
max_upload_size
id1813016
size89,342
Marc-Stefan Cassola (maccesch)

documentation

README

Leptos Windowing

Crates.io Docs MIT/Apache 2.0 Build Status

Base crate for virtualization and pagination for Leptos.

This crate contains common code for the crates leptos-pagination and leptos-virtualization. You probably want don't want to use this crate directly.

Loading data

Wether you use pagination or virtualization you have to provide the data to display. This is done through implementing one of the various Loader traits. Depending on your use case you should implement the trait that best fits your needs:

  • [MemoryLoader]: If your dataset is already in memory like in a Vec, HashSet, array, ...
  • [PaginatedLoader]: If your data source provides data in pages (independent of if you use UI pagination or virtualization).
  • [ExactLoader]: If your data source can provide an exact range of items (start index to end index).
  • [Loader]: If none of the above fit your needs, you can implement this trait to provide your own loading logic.

Please refer to the documentation and the examples to see how to implement these traits.

Commit count: 25

cargo fmt