Function sauron_core::html::html_element [−][src]
pub fn html_element<MSG>(
tag: &'static str,
attrs: Vec<Attribute<MSG>>,
children: Vec<Node<MSG>>
) -> Node<MSG>
Expand description
creates an html element, where the first argument: tag is the html element tag. Example:
ⓘ
html_element("div", vec![class("container")], vec![])