Trait leptos_dom::ev::EventDescriptor
source · pub trait EventDescriptor: Clone {
type EventType: FromWasmAbi;
// Required methods
fn name(&self) -> Cow<'static, str>;
fn event_delegation_key(&self) -> Cow<'static, str>;
// Provided method
fn bubbles(&self) -> bool { ... }
}
Expand description
A trait for converting types into web_sys events.
Required Associated Types§
sourcetype EventType: FromWasmAbi
type EventType: FromWasmAbi
The web_sys
event type, such as web_sys::MouseEvent
.
Required Methods§
sourcefn event_delegation_key(&self) -> Cow<'static, str>
fn event_delegation_key(&self) -> Cow<'static, str>
The key used for event delegation.