Skip to main content

picker_optional

Function picker_optional 

Source
pub fn picker_optional<T, Sel, M>(
    selected: Sel,
    options: impl IntoPickerOptions<T, M>,
) -> Picker<T, Optional<Sel>>
where T: Clone + PartialEq + 'static, Sel: Binding<Option<T>>,
Expand description

picker over an optional value: None is “nothing chosen” (no selection where the toolkit can show none), and a user’s choice writes Some(value).

Day API ↩ Guides· daybrite.dev