Function sauron::prelude::classes [−][src]
pub fn classes<C, V, MSG>(
class_list: C
) -> Attribute<&'static str, &'static str, AttributeValue<MSG>> where
C: AsRef<[V]>,
V: ToString,
Expand description
a helper function to add multiple classes to a node
Examples
use sauron::prelude::*;
let html: Node<()> =
div(vec![classes(["dashed", "error"])], vec![]);