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::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::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;
Deprecatedpub use crate::browser::dom::event_handler::simple_ev;
Deprecatedpub 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::util::request_animation_frame;
Deprecatedpub use crate::browser::util::RequestAnimationFrameHandle;
Deprecatedpub use crate::browser::util::RequestAnimationFrameTime;
Deprecatedpub use crate::browser::Url;
pub use crate::browser::UrlSearch;
pub use crate::helpers::not;
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;
Deprecatedpub use js_sys;
pub use wasm_bindgen;
pub use web_sys;
pub use crate::browser::dom::css_units::*;
pub use crate::shortcuts::*;
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 JavaScriptError
object. - Representation of an object owned by JS.
Enums
- The At enum restricts element-creation to only valid attribute 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
- 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>
andResult<T, E>
for unwrapping theT
value, or throwing a JS error if it is not available.