Trait droom_ui::callback::callbacks::Action
[−]
[src]
pub trait Action where Self: Element + 'static { fn set_action<F>(&mut self, cb: F) -> Self where F: Callback<(Self,)> { ... } fn remove_action(&mut self) -> Option<Box<Callback<(Self,)>>> { ... } }
Action generated when the element is activated. Affects each element differently.
See the documentation of the Self
object for the effect of this callback on it.
Provided Methods
fn set_action<F>(&mut self, cb: F) -> Self where F: Callback<(Self,)>
fn remove_action(&mut self) -> Option<Box<Callback<(Self,)>>>
Implementors
impl Action for Button