Skip to main content

native_segmented

Function native_segmented 

Source
pub fn native_segmented(
    labels: Vec<String>,
    selected: usize,
) -> NativeSegmentedView
Expand description

A native segmented control over labels, with the app-owned selected segment — see NativeSegmentedView. An out-of-range selected shows no selection rather than failing; at most 64 segments are shown (crate::controls::segmented::MAX_SEGMENTS).