pub enum DomEvent {
Click {
element_id: String,
},
Input {
element_id: String,
value: String,
},
KeyPress {
key: String,
ctrl: bool,
shift: bool,
},
Focus {
element_id: String,
},
Blur {
element_id: String,
},
Submit {
element_id: String,
},
}Expand description
DOM events that can be dispatched
Variants§
Click
Click event on an element
Input
Input event with new value
KeyPress
Key press event
Fields
Focus
Focus event on an element
Blur
Blur event (element lost focus)
Submit
Submit event (for forms)
Implementations§
Trait Implementations§
impl Eq for DomEvent
impl StructuralPartialEq for DomEvent
Auto Trait Implementations§
impl Freeze for DomEvent
impl RefUnwindSafe for DomEvent
impl Send for DomEvent
impl Sync for DomEvent
impl Unpin for DomEvent
impl UnsafeUnpin for DomEvent
impl UnwindSafe for DomEvent
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