Function sauron::prelude::html_element [−][src]
pub fn html_element<MSG>(
tag: &'static str,
attrs: Vec<Attribute<&'static str, &'static str, AttributeValue, Callback<Event, MSG>>, Global>,
children: Vec<Node<&'static str, &'static str, &'static str, AttributeValue, Callback<Event, MSG>>, Global>
) -> Node<&'static str, &'static str, &'static str, AttributeValue, Callback<Event, 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![])