Skip to main content

scrolls

Function scrolls 

Source
pub fn scrolls<E: StatefulInteractiveElement>(el: E, axes: Axes) -> E
Expand description

pane’s answer applied to an element that already exists — a container that scrolls only at some widths, or one another builder handed back.

strip.when(compact, |strip| scroll::scrolls(strip, Axes::Horizontal))