Skip to main content

Split

Function Split 

Source
pub fn Split(_: SplitProps) -> Element
Expand 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.