Trait leptos_dom::ev::EventDescriptor
source · pub trait EventDescriptor: Clone {
type EventType: FromWasmAbi;
const BUBBLES: bool;
// Required methods
fn name(&self) -> Oco<'static, str>;
fn event_delegation_key(&self) -> Oco<'static, str>;
// Provided method
fn options(&self) -> &Option<AddEventListenerOptions> { ... }
}
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 Associated Constants§
Required Methods§
sourcefn event_delegation_key(&self) -> Oco<'static, str>
fn event_delegation_key(&self) -> Oco<'static, str>
The key used for event delegation.
Provided Methods§
sourcefn options(&self) -> &Option<AddEventListenerOptions>
fn options(&self) -> &Option<AddEventListenerOptions>
Return the options for this type. This is only used when you create a Custom
event
handler.
Object Safety§
This trait is not object safe.