pub struct Tree { /* private fields */ }Expand description
A tree. Keyboard (ARIA tree pattern): Up and Down move, Right opens or goes to the first child, Left closes or goes to the parent, Home and End, Enter or Space selects, letters jump.
ⓘ
Tree::of(category_children).label("Categories")Implementations§
Trait Implementations§
Source§impl Component for Tree
impl Component for Tree
fn render(&self, out: &mut String, r: &Render<'_>)
Source§fn source(&self, key: &str) -> Option<&dyn DataSource>
fn source(&self, key: &str) -> Option<&dyn DataSource>
Data the component fetches through an action, by key (a field name for lookups).
fn grid(&self) -> Option<&dyn GridSource>
fn form(&self) -> Option<&dyn FormSource>
Source§fn reveal(&self, _field: &str) -> Option<Revealed>
fn reveal(&self, _field: &str) -> Option<Revealed>
The raw value of a masked field this component shows, for an audited reveal. The server
checks the unmask permission before sending it.
Source§fn import(&self) -> Option<&dyn ImportSource>
fn import(&self) -> Option<&dyn ImportSource>
CSV import, for components that import rows (see
crate::Import).Source§fn children(&self) -> &[Node]
fn children(&self) -> &[Node]
Nodes held by a container. Child
i of the node at path p has the path p.i.Source§fn eager_children(&self) -> &[Node]
fn eager_children(&self) -> &[Node]
Children rendered with the page. Others, such as closed lazy tabs, load when first shown.
Auto Trait Implementations§
impl !RefUnwindSafe for Tree
impl !UnwindSafe for Tree
impl Freeze for Tree
impl Send for Tree
impl Sync for Tree
impl Unpin for Tree
impl UnsafeUnpin for Tree
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