[−][src]Module sauron_core::dom
This module provides functionalities for manipulating the actual Document Object Model in the browser
Re-exports
pub use events::*; |
Modules
apply_patches | provides functionalities related to patching the DOM in the browser. |
cmd | provides functionalities for commands to be executed by the system, such as when the application starts or after the application updates. |
events | https://developer.mozilla.org/en-US/docs/Web/Events |
Structs
CreatedNode | 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. |
DomUpdater | 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. |
Http | Provides functions for doing http network request |
Program | 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. |
Window | Provides access to the Browser window |
Traits
Component | The app should implement this trait for it to be handled by the Program |
Dispatch | This trait is used in the DomUpdater to call the dispatch method when an event occured |
Functions
body | provides access to the document body |
document | provides access to the document element |
execute_in_request_animation_frame | request animation frame and execute function |
history | utility function which returns the history api of the browser |
now | return the instantaneous time |
performance | provides access to the window Performance api |
request_animation_frame | utility function which executes the agument closure in a request animation frame |
window | utility function which returns the Window element |
Type Definitions
Cmd | alias Cmd to use Program as the APP |