pub struct List<K: Clone + Eq + Hash + 'static> { /* private fields */ }Expand description
Lazily indexed rows with fixed height or measured height estimates. Factories receive a reactive index and stable key and run once per mounted key. Only the render window and one focused key are read. The focused row may stay mounted outside that window; blur releases it. Ordinary each intentionally renders everything.
Implementations§
Source§impl<K: Clone + Eq + Hash> List<K>
impl<K: Clone + Eq + Hash> List<K>
Sourcepub fn table_rows(self, offset: impl Into<Vary<u32>>) -> Self
pub fn table_rows(self, offset: impl Into<Vary<u32>>) -> Self
Windowed structural rows inside an application’s semantic Table. The scroll root/surface stay generic; callers supply ColumnHeader/Cell content. Coordinates include an explicit offset (for example one header row).
pub fn name(self, value: impl Into<Vary<String>>) -> Self
pub fn height(self, value: f64) -> Self
pub fn row_height(self, value: f64) -> Self
Sourcepub fn measure(self, estimate: f64) -> Self
pub fn measure(self, estimate: f64) -> Self
Enable real row Resize measurements, using this estimate until known. Row wrappers have automatic height and a 1px minimum. The sparse index allocates no full-data array; unmeasured/evicted rows use the estimate.
Sourcepub fn measure_limit(self, value: usize) -> Self
pub fn measure_limit(self, value: usize) -> Self
Retained height metadata, independent of UI instances. At least the live render window is protected, even if it contains more rows than this limit.
Sourcepub fn locate(self, locate: impl Fn(&K) -> Option<usize> + 'static) -> Self
pub fn locate(self, locate: impl Fn(&K) -> Option<usize> + 'static) -> Self
O(1)/O(log n) stable-key lookup for anchoring across large data edits. No source scan is supplied by the framework. Results are validated.
Sourcepub fn revision(self, value: impl Into<Vary<u64>>) -> Self
pub fn revision(self, value: impl Into<Vary<u64>>) -> Self
Explicit data edit version for sources whose key closure is not reactive. Ordinary scrolls never relocate cached height metadata.
pub fn overscan(self, value: usize) -> Self
Sourcepub fn row_limit(self, value: usize) -> Self
pub fn row_limit(self, value: usize) -> Self
Reject an oversized render window before reading keys or mounting rows. Includes overscan; at most one additional focused row is allowed. This does not truncate visible data or silently change layout geometry.
pub fn scroll_limit(self, value: f64) -> Self
Sourcepub fn position(self, value: impl Into<Vary<f64>>) -> Self
pub fn position(self, value: impl Into<Vary<f64>>) -> Self
Programmatic logical offset. on_scroll may echo its reported value back into this source without issuing a new seek or cancelling navigation.