Struct yew_hooks::UseDropOptions
source · pub struct UseDropOptions {
pub onfiles: Option<Box<dyn FnMut(Vec<File>, DataTransfer)>>,
pub ontext: Option<Box<dyn FnMut(String, DataTransfer)>>,
pub onuri: Option<Box<dyn FnMut(String, DataTransfer)>>,
pub ondragover: Option<Box<dyn FnMut(DragEvent)>>,
pub ondragenter: Option<Box<dyn FnMut(DragEvent)>>,
pub ondragleave: Option<Box<dyn FnMut(DragEvent)>>,
pub ondragexit: Option<Box<dyn FnMut(DragEvent)>>,
pub ondrop: Option<Box<dyn FnMut(DragEvent)>>,
pub onpaste: Option<Box<dyn FnMut(ClipboardEvent)>>,
}Expand description
Options for drop.
Fields§
§onfiles: Option<Box<dyn FnMut(Vec<File>, DataTransfer)>>Callback for file drops.
ontext: Option<Box<dyn FnMut(String, DataTransfer)>>Callback for text drops.
onuri: Option<Box<dyn FnMut(String, DataTransfer)>>Callback for uri drops.
ondragover: Option<Box<dyn FnMut(DragEvent)>>Callback for dragover.
ondragenter: Option<Box<dyn FnMut(DragEvent)>>Callback for dragenter.
ondragleave: Option<Box<dyn FnMut(DragEvent)>>Callback for dragleave.
ondragexit: Option<Box<dyn FnMut(DragEvent)>>Callback for dragexit.
ondrop: Option<Box<dyn FnMut(DragEvent)>>Callback for drop.
onpaste: Option<Box<dyn FnMut(ClipboardEvent)>>Callback for paste.
Trait Implementations§
source§impl Default for UseDropOptions
impl Default for UseDropOptions
source§fn default() -> UseDropOptions
fn default() -> UseDropOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for UseDropOptions
impl !Send for UseDropOptions
impl !Sync for UseDropOptions
impl Unpin for UseDropOptions
impl !UnwindSafe for UseDropOptions
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.