Skip to main content

Crate llimphi_widget_segmented

Crate llimphi_widget_segmented 

Source
Expand description

llimphi-widget-segmented — control de opciones mutuamente exclusivas.

N opciones horizontales con UNA activa. Patrón iOS/macOS para alternativas radio-style cuando son pocas (2-5) y caben en línea. Si son más, usar un tabs o un dropdown.

Render-only: la app guarda selected: usize en el modelo y dispatcha Msg::SelectSegment(usize) al click.

Structs§

SegmentedPalette
Paleta del control.

Functions§

segmented_view
Construye el control. labels son los textos visibles; selected es el índice activo (0-based). make_msg(i) se llama al click.