pub struct FileTreeViewProps {
pub layout: LayoutStyle,
pub row_height: Px,
pub overscan: u32,
pub keep_alive: Option<usize>,
pub debug_root_test_id: Option<Arc<str>>,
pub debug_row_test_id_prefix: Option<Arc<str>>,
}Expand description
A retained-host, cache-root friendly file-tree list helper.
This is a pragmatic “workspace surface” building block:
- row identity is
TreeItemId, - click selects, and folders also toggle expansion on click,
- virtualization uses the virt-003 retained host path (so overscan boundary updates can attach/detach without rerendering a parent cache root).
debug_row_test_id_prefix is intended for scripted harnesses (e.g. UI Gallery torture pages).
Fields§
§layout: LayoutStyle§row_height: Px§overscan: u32§keep_alive: Option<usize>Optional retained-subtree budget for VirtualList window shifts.
When set, this overrides the default heuristic (overscan * 2). Larger values reduce
remount/layout churn at window boundaries, at the cost of retaining more offscreen
subtrees.
debug_root_test_id: Option<Arc<str>>§debug_row_test_id_prefix: Option<Arc<str>>Trait Implementations§
Source§impl Clone for FileTreeViewProps
impl Clone for FileTreeViewProps
Source§fn clone(&self) -> FileTreeViewProps
fn clone(&self) -> FileTreeViewProps
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FileTreeViewProps
impl Debug for FileTreeViewProps
Auto Trait Implementations§
impl Freeze for FileTreeViewProps
impl RefUnwindSafe for FileTreeViewProps
impl Send for FileTreeViewProps
impl Sync for FileTreeViewProps
impl Unpin for FileTreeViewProps
impl UnsafeUnpin for FileTreeViewProps
impl UnwindSafe for FileTreeViewProps
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more