Module sauron_core::prelude
source · Expand description
prelude
Re-exports
pub use crate::html;
pub use crate::html::attributes::key;
pub use crate::html::attributes::attr;
pub use crate::html::attributes::checked;
pub use crate::html::attributes::class;
pub use crate::html::attributes::class_namespaced;
pub use crate::html::attributes::classes;
pub use crate::html::attributes::classes_flag;
pub use crate::html::attributes::classes_flag_namespaced;
pub use crate::html::attributes::disabled;
pub use crate::html::attributes::type;
pub use crate::html::attributes::styles_flag;
pub use crate::html::comment;
pub use crate::html::input;
pub use crate::html::text;
pub use crate::html::view_if;
pub use crate::svg;
pub use crate::vdom::diff;
pub use crate::vdom::Attribute;
pub use crate::vdom::AttributeValue;
pub use crate::vdom::Element;
pub use crate::vdom::Listener;
pub use crate::vdom::Node;
pub use crate::vdom::Patch;
pub use crate::dom::Application;
pub use crate::dom::events;
pub use crate::dom::Program;
pub use crate::dom::document;
pub use crate::dom::now;
pub use crate::dom::window;
pub use crate::dom::Cmd;
pub use crate::dom::AnimationFrameHandle;
pub use crate::dom::Callback;
pub use crate::dom::Component;
pub use crate::dom::Container;
pub use crate::dom::Effects;
pub use crate::dom::Measurements;
pub use crate::dom::MountAction;
pub use crate::dom::MountTarget;
pub use crate::dom::Task;
pub use crate::dom::TimeoutCallbackHandle;
pub use crate::dom::CustomElement;
pub use jss as jss_crate;
pub use web_sys;
pub use wasm_bindgen_futures;
pub use js_sys;
pub use wasm_bindgen;
pub use serde_wasm_bindgen;
pub use crate::html::commons::*;
pub use crate::svg::attributes::commons::*;
pub use crate::svg::attributes::special::*;
pub use crate::svg::commons::*;
pub use crate::svg::special::*;
pub use crate::html::events::*;
Macros
- Creates css using json notation
- Creates css using json notation
- Create a css string using json notation and use namespace on the class selectors
- create css using jss with namespace macro with correct indentions
- Create css using jss macro with nice indentions
- Creat a style attribute
Structs
- A handle to both a closure in Rust as well as JS closure which will invoke the Rust closure.
- 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.
- Describe the path traversal of a Node starting from the root node
Constants
- These are most commonly used html attributes such as class, id, etc
Traits
- Add mapping function for Attribute
- Add mapping function for Element
- A trait for checked and unchecked casting between JS types.
- Add mapping function for Node, Element, Attribute,
- render node, elements to a writable buffer
- An extension trait for
Option<T>
andResult<T, E>
for unwrapping theT
value, or throwing a JS error if it is not available.
Functions
- Creates html accept attribute
- Creates html accesskey attribute
- Creates html action attribute
- Creates html align attribute
- Creates html allow attribute
- Creates html alt attribute
- Creates html autocapitalize attribute
- Creates html autocomplete attribute
- Creates html autofocus attribute
- Creates html autoplay attribute
- Creates html background attribute
- Creates html bgcolor attribute
- Creates html border attribute
- Creates html buffered attribute
- Relative to the width of the “0” (zero)
- Creates html challenge attribute
- Creates html charset attribute
- Creates html class attribute
- centimeters
- Creates html codebase attribute
- Creates html color attribute
- Creates html cols attribute
- Creates html colspan attribute
- Creates html content attribute
- Creates html contenteditable attribute
- Creates html contextmenu attribute
- Creates html controls attribute
- Creates html coords attribute
- Creates html crossorigin attribute
- Creates html csp attribute
- Creates html data attribute
- Creates html datetime attribute
- Creates html decoding attribute
- Creates html default attribute
- Creates html defer attribute
- Represent an angle in degrees https://developer.mozilla.org/en-US/docs/Web/CSS/angle
- Creates html dir attribute
- Creates html dirname attribute
- Creates html download attribute
- Creates html draggable attribute
- Creates html dropzone attribute
- Creates html enctype attribute
- Creates html enterkeyhint attribute
- Relative to the x-height of the current font (rarely used)
- Creates html formaction attribute
- Creates html formnovalidate attribute
- Represents an angle in gradians https://developer.mozilla.org/en-US/docs/Web/CSS/angle
- Creates html headers attribute
- Creates html height attribute
- Creates html hidden attribute
- Creates html high attribute
- Creates html href attribute
- Creates html hreflang attribute
- Creates html http attribute
- Creates html icon attribute
- Creates html id attribute
- Creates html importance attribute
- Creates html inputmode attribute
- Creates html integrity attribute
- Creates html intrinsicsize attribute
- Creates html ismap attribute
- Creates html itemprop attribute
- Creates html keytype attribute
- Creates html kind attribute
- Creates html lang attribute
- Creates html language attribute
- Creates html list attribute
- Creates html loading attribute
- Creates html low attribute
- Creates html manifest attribute
- Creates html max attribute
- Creates html maxlength attribute
- Creates html media attribute
- Creates html method attribute
- Creates html min attribute
- Creates html minlength attribute
- milimeters
- Represents a time in milliseconds. https://developer.mozilla.org/en-US/docs/Web/CSS/time
- Creates html multiple attribute
- Creates html muted attribute
- Creates html name attribute
- Creates html novalidate attribute
- Creates html optimum attribute
- percentage Example:
- Creates html ping attribute
- Creates html placeholder attribute
- Creates html poster attribute
- Creates html preload attribute
- points (1pt = 1/72 of 1in)
- pixels (1px = 1/96th of 1in)
- Represent an angle in radians https://developer.mozilla.org/en-US/docs/Web/CSS/angle
- Creates html radiogroup attribute
- Creates html readonly attribute
- Creates html referrerpolicy attribute
- Creates html rel attribute
- Creates html required attribute
- Creates html reversed attribute
- the rgb css function
- Creates html rows attribute
- Creates html rowspan attribute
- Represents a time in seconds. https://developer.mozilla.org/en-US/docs/Web/CSS/time
- Creates html sandbox attribute
- Creates html scope attribute
- Creates html scoped attribute
- Creates html selected attribute
- Creates html shape attribute
- Creates html size attribute
- Creates html sizes attribute
- Creates html slot attribute
- Creates html spellcheck attribute
- Creates html src attribute
- Creates html srcdoc attribute
- Creates html srclang attribute
- Creates html srcset attribute
- Creates html start attribute
- Creates html step attribute
- Creates html tabindex attribute
- Creates html target attribute
- Creates html title attribute
- Creates html translate attribute
- Represents an angle in a number of turns. One full circle is 1turn. https://developer.mozilla.org/en-US/docs/Web/CSS/angle
- Creates html usemap attribute
- Creates html value attribute
- Relative to 1% of the height of the viewport*
- Relative to 1% of the width of the viewport*
- Creates html width attribute
- Creates html wrap attribute