[][src]Enum smithy_types::UiEvent

pub enum UiEvent {
    OnKeyDown(KeyboardEvent),
    OnKeyPress(KeyboardEvent),
    OnKeyUp(KeyboardEvent),
    OnChange(InputEvent),
    OnInput(InputEvent),
    OnInvalid(InputEvent),
    OnSubmit(InputEvent),
    OnTest(bool),
}

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

Usage:

on_key_down={|e: web_sys::KeyboardEvent| { /* ... */ }}

Requires the keyboard-events feature.

Usage:

on_key_press={|e: web_sys::KeyboardEvent| { /* ... */ }}

Requires the keyboard-events feature.

Usage:

on_key_up={|e: web_sys::KeyboardEvent| { /* ... */ }}

Requires the keyboard-events feature.

Usage:

on_change={|e: web_sys::InputEvent| { /* ... */ }}

Requires the input-events feature.

Usage:

on_input={|e: web_sys::InputEvent| { /* ... */ }}

Requires the input-events feature.

Usage:

on_invalid={|e: web_sys::InputEvent| { /* ... */ }}

Requires the input-events feature.

Usage:

on_submit={|e: web_sys::InputEvent| { /* ... */ }}

Requires the input-events feature.

An event used for testing.

Auto Trait Implementations

impl !Send for UiEvent

impl !Sync for UiEvent

Blanket Implementations

impl<T> From for T
[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]