Expand description
TwistArrow — a small chevron that indicates and toggles a tree node’s expansion.
Renders a right-pointing arrow when collapsed and a down-pointing arrow when
expanded; a leaf node (where has_children is false) paints nothing but
reserves its slot so the indent column stays aligned across all rows.
The glyph flips direction under right-to-left layout.
Accessibility-decorative: the chevron hides itself from the AT tree and
the parent row’s node owns set_expanded.
ⓘ
// TwistArrow is typically instantiated by TreeView row delegates and requires
// an EventContext to wire the tap callback. The snippet below shows the
// construction pattern used inside a custom tree-row build().
let arrow = TwistArrow::new(16.0, true, false)
.on_click(|ctx| ctx.send_intent(teksilo_core::Intent::new("tree.toggle")));Structs§
- Twist
Arrow - Small interactive chevron rendered in the leading indent column of a tree row.