[−][src]Crate seed
See readme for details.
Re-exports
pub use crate::fetch::Method; |
pub use crate::fetch::Request; |
pub use crate::routing::push_route; |
pub use crate::routing::Url; |
Modules
css_units | |
dom_entity_names | |
dom_types | This module contains structs and enums that represent dom types, and their parts. These are the types used internally by our virtual dom. |
events | This module contains code related to event handling; ie things that update the dom, related to
|
fetch | High-level interface for |
orders | |
prelude | Introduce |
routing | This module is decoupled / independent. |
shortcuts | This file exports helper macros for element creation, populated by a higher-level macro, and macros for creating the parts of elements. (attrs, style, events) |
storage | Allows use of the Web Storage API / local storage. |
Macros
Structs
App | |
AppBuilder | Used to create and store initial app configuration, ie items passed by the app creator |
Functions
body | Convenience function to access the |
cookies | Convenience function to get all cookies from the current |
document | Convenience function to access the |
empty | Create an element flagged in a way that it will not be rendered. Useful in ternary operations. |
error | Similar to log, but for errors. |
history | Convenience function to access the |
html_document | Convenience function to access the |
log | Convenience function for logging to the web browser's console. See also the log! macro, which is more flexible. |
set_interval | A high-level wrapper for |
set_timeout | See |
to_html_el | See |
to_input | Convenience function used in event handling: Convert an event target to an input element; eg so you can take its value. |
to_kbevent | Convert a |
to_mouse_event | See |
to_select | See |
to_textarea | See |
update | Deprecated Trigger update function.
It requires Msg to be (De)serializable
and to register |
window | Convenience function to avoid repeating expect logic. |