Module html

Source
Expand description

Provides functions and macros to build html elements

Re-exports§

pub use crate::vdom::element;
pub use crate::vdom::element_ns;
pub use crate::dom::events;
pub use tags::commons::*;
pub use tags::self_closing::*;
pub use tags::*;

Modules§

attributes
Create html attributes
lookup
Provides list of HTML and SVG tags, style properties
tags
provides functionalities and macro for building html elements
units
provides function and macro for html units such as px, %, em, etc.

Functions§

comment
create a comment node
doctype
create a doctype
fragment
fragment is a list of nodes
html_element
Creates an html element with the element tag name and namespace This is specifically used for creating svg element where a namespace is needed, otherwise the browser will not render it correctly.
lazy_view_if
evaluate the fn_node only if flag is true and return the evaluated Node
node_list
create a node which contains a list of nodes
symbol
Create html entities such as   &gt
text
Create a text node element
view_if
A help function which render the view when the condition is met, otherwise just display a span(vec![], vec![])