pub struct ButtonView { /* private fields */ }Expand description
A push-button description.
Implementations§
Source§impl ButtonView
impl ButtonView
Sourcepub fn enabled(self, enabled: impl IntoBoolValue) -> ButtonView
pub fn enabled(self, enabled: impl IntoBoolValue) -> ButtonView
Set or reactively bind the enabled property.
Sourcepub fn on_click(self, observer: impl FnMut(&()) + 'static) -> ButtonView
pub fn on_click(self, observer: impl FnMut(&()) + 'static) -> ButtonView
Attach a click observer owned by the mounted button.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for ButtonView
impl !Send for ButtonView
impl !Sync for ButtonView
impl !UnwindSafe for ButtonView
impl Freeze for ButtonView
impl Unpin for ButtonView
impl UnsafeUnpin for ButtonView
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