Function sauron::svg::svg_element [−][src]
pub fn svg_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 svg element with the tag, attributes and children. Example:
ⓘ
svg_element("circle", vec![cx(1.0), cy(1.0), r(1.0)], vec![]);