Struct yew_hooks::UseDragOptions
source · pub struct UseDragOptions {
pub ondragstart: Option<Box<dyn FnMut(DragEvent)>>,
pub ondragend: Option<Box<dyn FnMut(DragEvent)>>,
}Expand description
Options for drag.
Fields§
§ondragstart: Option<Box<dyn FnMut(DragEvent)>>Callback for dragstart.
ondragend: Option<Box<dyn FnMut(DragEvent)>>Callback for dragend.
Trait Implementations§
source§impl Default for UseDragOptions
impl Default for UseDragOptions
source§fn default() -> UseDragOptions
fn default() -> UseDragOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for UseDragOptions
impl !Send for UseDragOptions
impl !Sync for UseDragOptions
impl Unpin for UseDragOptions
impl !UnwindSafe for UseDragOptions
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoPropValue<Option<T>> for T
impl<T> IntoPropValue<Option<T>> for T
source§fn into_prop_value(self) -> Option<T>
fn into_prop_value(self) -> Option<T>
Convert
self to a value of a Properties struct.source§impl<T> IntoPropValue<T> for T
impl<T> IntoPropValue<T> for T
source§fn into_prop_value(self) -> T
fn into_prop_value(self) -> T
Convert
self to a value of a Properties struct.