euv-example 0.5.13

An example application demonstrating the euv UI framework with reactive signals, custom components, and WebAssembly.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/// The total number of items in the virtual list demo.
pub(crate) const VIRTUAL_LIST_TOTAL_COUNT: usize = 10000;

/// The fixed height in pixels for each virtual list item row.
pub(crate) const VIRTUAL_LIST_ITEM_HEIGHT: i32 = 44;

/// The number of extra items rendered above and below the visible viewport
/// to reduce flicker during fast scrolling.
pub(crate) const VIRTUAL_LIST_OVERSCAN_COUNT: usize = 5;

/// The HTML id for the virtual list scroll container element.
pub(crate) const VIRTUAL_LIST_CONTAINER_ID: &str = "virtual-list-container";

/// The default number of visible items to render when viewport height is not yet available.
pub(crate) const VIRTUAL_LIST_DEFAULT_VISIBLE_COUNT: usize = 20;