[−][src]Function sauron::html::attributes::classes
pub fn classes<C, V, MSG>(
class_list: C
) -> Attribute<&'static str, &'static str, AttributeValue, Event, MSG> where
C: AsRef<[V]>,
V: ToString,
a helper function to add multiple classes to a node
ⓘThis example is not tested
div(vec![classes(["dashed", "error"])], vec![])