[−][src]Enum smithy::types::UiEvent
An enum of events that a DOM element can potentially handle.
These are included on dom elements as follows:
smd!(
<some-dom-node ui_event={ui_event_handler} />
)
e.g.
smd!(
<div on_click={|e: web_sys::MouseEvent| { /* ... */ }} />
)
Variants
OnCopy(ClipboardEvent)Usage:
on_copy={|e: web_sys::ClipboardEvent| { /* ... */ }}
Requires the clipboard-events feature.
OnCut(ClipboardEvent)Usage:
on_cut={|e: web_sys::ClipboardEvent| { /* ... */ }}
Requires the clipboard-events feature.
OnPaste(ClipboardEvent)Usage:
on_paste={|e: web_sys::ClipboardEvent| { /* ... */ }}
Requires the clipboard-events feature.
OnKeyDown(KeyboardEvent)Usage:
on_key_down={|e: web_sys::KeyboardEvent| { /* ... */ }}
Requires the keyboard-events feature.
OnKeyPress(KeyboardEvent)Usage:
on_key_press={|e: web_sys::KeyboardEvent| { /* ... */ }}
Requires the keyboard-events feature.
OnKeyUp(KeyboardEvent)Usage:
on_key_up={|e: web_sys::KeyboardEvent| { /* ... */ }}
Requires the keyboard-events feature.
OnFocus(FocusEvent)Usage:
on_focus={|e: web_sys::FocusEvent| { /* ... */ }}
Requires the focus-events feature.
OnBlur(FocusEvent)Usage:
on_blur={|e: web_sys::FocusEvent| { /* ... */ }}
Requires the focus-events feature.
OnChange(InputEvent)Usage:
on_change={|e: web_sys::InputEvent| { /* ... */ }}
Requires the input-events feature.
OnInput(InputEvent)Usage:
on_input={|e: web_sys::InputEvent| { /* ... */ }}
Requires the input-events feature.
OnInvalid(InputEvent)Usage:
on_invalid={|e: web_sys::InputEvent| { /* ... */ }}
Requires the input-events feature.
OnSubmit(InputEvent)Usage:
on_submit={|e: web_sys::InputEvent| { /* ... */ }}
Requires the input-events feature.
OnClick(MouseEvent)Usage:
on_click={|e: web_sys::MouseEvent| { /* ... */ }}
Requires the mouse-events feature.
OnContextMenu(MouseEvent)Usage:
on_context_menu={|e: web_sys::MouseEvent| { /* ... */ }}
Requires the mouse-events feature.
OnDblClick(MouseEvent)Usage:
on_dbl_cilck={|e: web_sys::MouseEvent| { /* ... */ }}
Requires the mouse-events feature.
OnDrag(MouseEvent)Usage:
on_drag={|e: web_sys::MouseEvent| { /* ... */ }}
Requires the mouse-events feature.
OnDragEnd(MouseEvent)Usage:
on_drag_end={|e: web_sys::MouseEvent| { /* ... */ }}
Requires the mouse-events feature.
OnDragEnter(MouseEvent)Usage:
on_drag_enter={|e: web_sys::MouseEvent| { /* ... */ }}
Requires the mouse-events feature.
OnDragExit(MouseEvent)Usage:
on_drag_exit={|e: web_sys::MouseEvent| { /* ... */ }}
Requires the mouse-events feature.
OnDragLeave(MouseEvent)Usage:
on_drag_leave={|e: web_sys::MouseEvent| { /* ... */ }}
Requires the mouse-events feature.
OnDragOver(MouseEvent)Usage:
on_drag_over={|e: web_sys::MouseEvent| { /* ... */ }}
Requires the mouse-events feature.
OnDragStart(MouseEvent)Usage:
on_drag_start={|e: web_sys::MouseEvent| { /* ... */ }}
Requires the mouse-events feature.
OnDrop(MouseEvent)Usage:
on_drop={|e: web_sys::MouseEvent| { /* ... */ }}
Requires the mouse-events feature.
OnMouseDown(MouseEvent)Usage:
on_mouse_down={|e: web_sys::MouseEvent| { /* ... */ }}
Requires the mouse-events feature.
OnMouseEnter(MouseEvent)Usage:
on_mouse_enter={|e: web_sys::MouseEvent| { /* ... */ }}
Requires the mouse-events feature.
OnMouseLeave(MouseEvent)Usage:
on_mouse_leave={|e: web_sys::MouseEvent| { /* ... */ }}
Requires the mouse-events feature.
OnMouseMove(MouseEvent)Usage:
on_move_move={|e: web_sys::MouseEvent| { /* ... */ }}
Requires the mouse-events feature.
OnMouseOver(MouseEvent)Usage:
on_mouse_over={|e: web_sys::MouseEvent| { /* ... */ }}
Requires the mouse-events feature.
OnMouseOut(MouseEvent)Usage:
on_mouse_out={|e: web_sys::MouseEvent| { /* ... */ }}
Requires the mouse-events feature.
OnMouseUp(MouseEvent)Usage:
on_mouse_up={|e: web_sys::MouseEvent| { /* ... */ }}
Requires the mouse-events feature.
OnPointerDown(PointerEvent)Usage:
on_pointer_down={|e: web_sys::PointerEvent| { /* ... */ }}
Requires the pointer-events feature.
OnPointerMove(PointerEvent)Usage:
on_pointer_move={|e: web_sys::PointerEvent| { /* ... */ }}
Requires the pointer-events feature.
OnPointerUp(PointerEvent)Usage:
on_pointer_up={|e: web_sys::PointerEvent| { /* ... */ }}
Requires the pointer-events feature.
OnPointerCancel(PointerEvent)Usage:
on_pointer_cancel={|e: web_sys::PointerEvent| { /* ... */ }}
Requires the pointer-events feature.
OnGotPointerCapture(PointerEvent)Usage:
on_got_pointer_capture={|e: web_sys::PointerEvent| { /* ... */ }}
Requires the pointer-events feature.
OnLostPointerCapture(PointerEvent)Usage:
on_lost_pointer_capture={|e: web_sys::PointerEvent| { /* ... */ }}
Requires the pointer-events feature.
OnPointerEnter(PointerEvent)Usage:
on_pointer_enter={|e: web_sys::PointerEvent| { /* ... */ }}
Requires the pointer-events feature.
OnPointerLeave(PointerEvent)Usage:
on_pointer_leave={|e: web_sys::PointerEvent| { /* ... */ }}
Requires the pointer-events feature.
OnPointerOver(PointerEvent)Usage:
on_pointer_over={|e: web_sys::PointerEvent| { /* ... */ }}
Requires the pointer-events feature.
OnPointerOut(PointerEvent)Usage:
on_pointer_out={|e: web_sys::PointerEvent| { /* ... */ }}
Requires the pointer-events feature.
OnSelect(UiEvent)Usage:
on_select={|e: web_sys::UiEvent| { /* ... */ }}
Requires the select-events feature.
OnTouchCancel(TouchEvent)Usage:
on_touch_cancel={|e: web_sys::TouchEvent| { /* ... */ }}
Requires the touch-events feature.
OnTouchEnd(TouchEvent)Usage:
on_touch_end={|e: web_sys::TouchEvent| { /* ... */ }}
Requires the touch-events feature.
OnTouchMove(TouchEvent)Usage:
on_touch_move={|e: web_sys::TouchEvent| { /* ... */ }}
Requires the touch-events feature.
OnTouchStart(TouchEvent)Usage:
on_touch_start={|e: web_sys::TouchEvent| { /* ... */ }}
Requires the touch-events feature.
OnScroll(ScrollAreaEvent)Usage:
on_scroll={|e: web_sys::ScrollAreaEvent| { /* ... */ }}
Requires the scroll-events feature.
OnLoad(UiEvent)Usage:
on_load={|e: web_sys::UiEvent| { /* ... */ }}
Requires the image-events feature.
OnError(UiEvent)Usage:
on_error={|e: web_sys::UiEvent| { /* ... */ }}
Requires the image-events feature.
OnAnimationStart(AnimationEvent)Usage:
on_animation_start={|e: web_sys::AnimationEvent| { /* ... */ }}
Requires the animation-events feature.
OnAnimationEnd(AnimationEvent)Usage:
on_animation_end={|e: web_sys::AnimationEvent| { /* ... */ }}
Requires the animation-events feature.
OnAnimationIteration(AnimationEvent)Usage:
on_animation_iteration={|e: web_sys::AnimationEvent| { /* ... */ }}
Requires the animation-events feature.
OnTransitionEnd(TransitionEvent)Usage:
on_transition_end={|e: web_sys::TransitionEvent| { /* ... */ }}
Requires the transition-events feature.
OnToggle(UiEvent)Usage:
on_toggle={|e: web_sys::UiEvent| { /* ... */ }}
Requires the toggle-events feature.
OnTest(bool)An event used for testing.
Auto Trait Implementations
impl !Send for UiEvent
impl Unpin for UiEvent
impl !Sync for UiEvent
impl UnwindSafe for UiEvent
impl RefUnwindSafe for UiEvent
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> From<T> for T[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,