Expand description
Introduce El
and Tag
into the global namespace for convenience (El
will be repeated
often in the output type of components), and UpdateEl
, which is required
for element-creation macros, input event constructors, and the History
struct.
Expose the wasm_bindgen
prelude.
Re-exports
pub use crate::app::subs;
pub use crate::app::cmds;
pub use crate::app::streams;
pub use crate::app::App;
pub use crate::app::CmdHandle;
pub use crate::app::GetElement;
pub use crate::app::MessageMapper;
pub use crate::app::Orders;
pub use crate::app::RenderInfo;
pub use crate::app::StreamHandle;
pub use crate::app::SubHandle;
pub use crate::browser::dom::css_units::*;
pub use crate::browser::dom::event_handler::drag_ev;
pub use crate::browser::dom::event_handler::ev;
pub use crate::browser::dom::event_handler::input_ev;
pub use crate::browser::dom::event_handler::keyboard_ev;
pub use crate::browser::dom::event_handler::mouse_ev;
pub use crate::browser::dom::event_handler::pointer_ev;
pub use crate::browser::dom::event_handler::raw_ev;
pub use crate::browser::dom::event_handler::simple_ev;
pub use crate::browser::dom::event_handler::touch_ev;
pub use crate::browser::dom::event_handler::wheel_ev;
pub use crate::browser::dom::Namespace;
pub use crate::browser::fetch;
pub use crate::browser::fetch::fetch;
pub use crate::browser::fetch::FetchError;
pub use crate::browser::fetch::Header;
pub use crate::browser::util::request_animation_frame;
pub use crate::browser::util::ClosureNew;
pub use crate::browser::util::RequestAnimationFrameHandle;
pub use crate::browser::util::RequestAnimationFrameTime;
pub use crate::browser::web_socket;
pub use crate::browser::web_socket::CloseEvent;
pub use crate::browser::web_socket::WebSocket;
pub use crate::browser::web_socket::WebSocketError;
pub use crate::browser::web_storage;
pub use crate::browser::web_storage::LocalStorage;
pub use crate::browser::web_storage::SessionStorage;
pub use crate::browser::web_storage::WebStorage;
pub use crate::browser::Url;
pub use crate::browser::UrlSearch;
pub use crate::helpers::not;
pub use crate::shortcuts::*;
pub use crate::virtual_dom::el_key;
pub use crate::virtual_dom::el_ref::el_ref;
pub use crate::virtual_dom::on_insert;
pub use crate::virtual_dom::AsAtValue;
pub use crate::virtual_dom::AtValue;
pub use crate::virtual_dom::CSSValue;
pub use crate::virtual_dom::El;
pub use crate::virtual_dom::ElRef;
pub use crate::virtual_dom::EventHandler;
pub use crate::virtual_dom::InsertEventHandler;
pub use crate::virtual_dom::IntoNodes;
pub use crate::virtual_dom::Node;
pub use crate::virtual_dom::ToClasses;
pub use crate::virtual_dom::UpdateEl;
pub use crate::virtual_dom::UpdateElForIterator;
pub use crate::virtual_dom::UpdateElForOptionIterator;
pub use crate::virtual_dom::View;
pub use js_sys;
pub use wasm_bindgen;
pub use web_sys;
Structs
A handle to both a closure in Rust as well as JS closure which will invoke the Rust closure.
A hash table where the iteration order of the key-value pairs is independent of the hash values of the keys.
Convenience type for use on exported fn() -> Result<T, JsError>
functions, where you wish to
throw a JavaScript Error
object.
Representation of an object owned by JS.
Its methods configure the request, and handle the response. Many of them return the original struct, and are intended to be used chained together.
Response status.
Enums
The At enum restricts element-creation to only valid event names, as defined here: https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes
The Ev enum restricts element-creation to only valid event names, as defined here: MDN reference Web/Events
HTTP Method types.
The St enum restricts element-creation to only valid styles.
The Tag enum restricts element-creation to only valid tags, as defined here: https://developer.mozilla.org/en-US/docs/Web/HTML/Element
Traits
A trait for checked and unchecked casting between JS types.
An extension trait for Option<T>
and Result<T, E>
for unwrapping the T
value, or throwing a JS error if it is not available.