Module sauron::dom[][src]

Expand description

This module provides functionalities for manipulating the actual Document Object Model in the browser

Modules

provides functionalities related to patching the DOM in the browser.

provides functionalities for commands to be executed by the system, such as when the application starts or after the application updates.

Create events Object

Structs

The AnimationEvent class.

A generic wrapper for a closure in rust where we can transform and pass around.

A node along with all of the closures that were created for that node’s events and all of it’s child node’s events.

Used for keeping a real DOM node up to date based on the current Node and a new incoming Node that represents our latest DOM state.

Effects are a way for component to execute subsequent updates based on certain conditions. This can be used for doing animation and incremental changes to the view to provide an effect of transition or animation.

The HashChangeEvent class.

Provides functions for doing http network request

a custom InputEvent to contain the input string value

The KeyboardEvent class.

Contains the time it took for the last app update call for the component

an event when a virtual Node is mounted the field node is the actual dom node where the virtual Node is created in the actual dom

The MouseEvent class.

Holds the user App and the dom updater This is passed into the event listener and the dispatch program will be called after the event is triggered.

The TransitionEvent class.

Provides access to the Browser window

Enums

Map the Event to DomEvent, which are browser events

Constants

html events

Traits

An Application is the root component of your program. Everything that happens in your application is done here.

A component has a view and can update itself.

A Container have children that is set from the parent component

This trait is used in the DomUpdater to call the dispatch method when an event occured

Just a view, no events, no update. The properties of the component is set directly from the parent

Functions

provides access to the document body

provides access to the document element

utility function which returns the history api of the browser

return the instantaneous time

an event builder

attach an on_animationend event to the html element

attach an on_auxclick event to the html element

attach an on_blur event to the html element

attach an on_broadcast event to the html element

attach an on_change event to the html element

attach an on_checked event to the html element

on click event

attach an on_contextmenu event to the html element

attach an on_dblclick event to the html element

attach an on_doubleclick event to the html element

custom on_enter event, which is triggered from key_press when the Enter key is pressed

attach an on_focus event to the html element

attach an on_hashchange event to the html element

attach an on_input event to the html element

attach an on_keydown event to the html element

attach an on_keypress event to the html element

attach an on_keyup event to the html element

custom mount event

attach an on_mousedown event to the html element

attach an on_mouseenter event to the html element

attach an on_mouseleave event to the html element

attach an on_mousemove event to the html element

attach an on_mouseout event to the html element

attach an on_mouseover event to the html element

attach an on_mouseup event to the html element

attach an on_pointerlockchange event to the html element

attach an on_pointerlockerror event to the html element

attach an on_popstate event to the html element

attach an on_readystatechange event to the html element

attach an on_reset event to the html element

attach callback to the scroll event

attach an on_select event to the html element

attach an on_submit event to the html element

attach an on_transitionend event to the html element

attach an on_wheel event to the html element

provides access to the window Performance api

utility function which a closure in request animation frame

utility function which returns the Window element

Type Definitions

alias Cmd to use Program as the APP