Function sauron::prelude::html::attributes::classes_flag [−][src]
pub fn classes_flag<P, S, MSG>(
pair: P
) -> Attribute<&'static str, &'static str, AttributeValue, Callback<Event, MSG>> where
S: ToString,
P: AsRef<[(S, bool)]>,
Expand description
ⓘ
classes_flag([ ("dashed", self.is_hidden), ("error", self.has_error), ]),