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