[][src]Module seed::events

This module contains code related to event handling; ie things that update the dom, related to web_sys::Event

Structs

Listener

Ev-handling for Elements

Enums

Category
Ev

The Ev enum restricts element-creation to only valid event names, as defined here: https://developer.mozilla.org/en-US/docs/Web/Evs

Constants

UPDATE_TRIGGER_EVENT_IDDeprecated

Functions

input_ev

Create an event that passes a String of field text, for fast input handling.

keyboard_ev

Create an event that passes a web_sys::KeyboardEvent, allowing easy access to items like key_code() and key().

mouse_ev

See keyboard_ev

pointer_ev

See keyboard_ev

raw_ev

Create an event that accepts a closure, and passes a web_sys::Event, allowing full control of event-handling

simple_ev

Create an event that passes no data, other than it occurred. Foregoes using a closure, in favor of pointing to a message directly.

trigger_update_evDeprecated

Create an event that passes a web_sys::CustomEvent, allowing easy access to detail() and then trigger update

trigger_update_handlerDeprecated

Trigger update function from outside of App

Type Definitions

Event