pub fn Split(_: SplitProps) -> ElementExpand description
Two panes and a bar between them. The value is the primary pane’s share of the split, in percent, so the layout survives a window resize.
Arrows move the bar (Shift for ten times as far), Home and End go to the bounds, and
Enter collapses the primary pane to the minimum and restores it. A pane at zero is
hidden, so Tab cannot walk into controls nobody can see. Drag with any pointer;
Escape during a drag puts the bar back.
§Props
For details, see the props struct definition.
label:AccessibleNameprimary:Elementsecondary:Elementprimary_last:boolPut the secondary pane first, e.g. a context panel at the inline end.
stacked:boolStack the panes and drag a horizontal bar.
block_size:Option<String>The split’s block size when stacked, as a CSS length.
value:Option<ReadSignal<f64>>default_value:f64min:f64max:f64step:f64onresize:Option<EventHandler<Resize>>primary_label:Option<AccessibleName>Name the primary pane as a focusable region, for a long, scrollable pane.
availability:Availabilityclass:Option<String>attributes:Vec<Attribute>