pub struct ComboBoxView { /* private fields */ }Expand description
A combo-box description.
Implementations§
Source§impl ComboBoxView
impl ComboBoxView
Sourcepub fn value(self, value: impl IntoIntValue) -> Self
pub fn value(self, value: impl IntoIntValue) -> Self
Set or reactively bind the selected index.
Sourcepub fn on_value_change(self, observer: impl FnMut(&i32) + 'static) -> Self
pub fn on_value_change(self, observer: impl FnMut(&i32) + 'static) -> Self
Attach a selection-change observer owned by the mounted combo box.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for ComboBoxView
impl !Send for ComboBoxView
impl !Sync for ComboBoxView
impl !UnwindSafe for ComboBoxView
impl Freeze for ComboBoxView
impl Unpin for ComboBoxView
impl UnsafeUnpin for ComboBoxView
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more