Trait silkenweb::elements::HtmlElementEvents
source · pub trait HtmlElementEvents: Element {
// Provided methods
fn on_beforeinput(
self,
f: impl FnMut(InputEvent, Self::DomElement) + 'static
) -> Self { ... }
fn on_change(self, f: impl FnMut(Event, Self::DomElement) + 'static) -> Self { ... }
fn on_error(self, f: impl FnMut(Event, Self::DomElement) + 'static) -> Self { ... }
fn on_input(
self,
f: impl FnMut(InputEvent, Self::DomElement) + 'static
) -> Self { ... }
fn on_drag(
self,
f: impl FnMut(DragEvent, Self::DomElement) + 'static
) -> Self { ... }
fn on_dragend(
self,
f: impl FnMut(DragEvent, Self::DomElement) + 'static
) -> Self { ... }
fn on_dragenter(
self,
f: impl FnMut(DragEvent, Self::DomElement) + 'static
) -> Self { ... }
fn on_dragleave(
self,
f: impl FnMut(DragEvent, Self::DomElement) + 'static
) -> Self { ... }
fn on_dragover(
self,
f: impl FnMut(DragEvent, Self::DomElement) + 'static
) -> Self { ... }
fn on_dragstart(
self,
f: impl FnMut(DragEvent, Self::DomElement) + 'static
) -> Self { ... }
fn on_drop(
self,
f: impl FnMut(DragEvent, Self::DomElement) + 'static
) -> Self { ... }
fn on_load(self, f: impl FnMut(Event, Self::DomElement) + 'static) -> Self { ... }
}
Expand description
Events common to all HTML elements
Provided Methods§
fn on_beforeinput( self, f: impl FnMut(InputEvent, Self::DomElement) + 'static ) -> Self
fn on_change(self, f: impl FnMut(Event, Self::DomElement) + 'static) -> Self
fn on_error(self, f: impl FnMut(Event, Self::DomElement) + 'static) -> Self
fn on_input(self, f: impl FnMut(InputEvent, Self::DomElement) + 'static) -> Self
fn on_drag(self, f: impl FnMut(DragEvent, Self::DomElement) + 'static) -> Self
fn on_dragend( self, f: impl FnMut(DragEvent, Self::DomElement) + 'static ) -> Self
fn on_dragenter( self, f: impl FnMut(DragEvent, Self::DomElement) + 'static ) -> Self
fn on_dragleave( self, f: impl FnMut(DragEvent, Self::DomElement) + 'static ) -> Self
fn on_dragover( self, f: impl FnMut(DragEvent, Self::DomElement) + 'static ) -> Self
fn on_dragstart( self, f: impl FnMut(DragEvent, Self::DomElement) + 'static ) -> Self
fn on_drop(self, f: impl FnMut(DragEvent, Self::DomElement) + 'static) -> Self
fn on_load(self, f: impl FnMut(Event, Self::DomElement) + 'static) -> Self
Object Safety§
This trait is not object safe.