pub fn LiquidSegmentedControl(
__arg0: Modifier,
__arg1: usize,
on_select: impl Fn(usize) + 'static,
content: impl FnOnce(&LiquidSegmentedControlScope),
)Expand description
A segmented control. content declares equal-width segments; selected is
the active index; on_select receives the committed index. Segments tap AND
swipe: dragging slides the indicator with the finger as a glass lens. The
look comes from liquid_segmented_style.
ⓘ
LiquidSegmentedControl(Modifier::empty().width(310.0), selected.get(), move |index| {
selected.set(index)
}, |scope| {
scope.segment("Receiving");
scope.segment("Sending");
scope.segment("Errored");
});