Function floem::widgets::radio_button

source ·
pub fn radio_button<T>(
    represented_value: T,
    actual_value: ReadSignal<T>
) -> impl View
where T: Eq + PartialEq + Clone + 'static,
Expand description

Renders a radio button that appears as selected if the signal equals the given enum value. Can be combined with a label and a stack with a click event (as in examples/widget-gallery).