pub fn classes_flag_namespaced<MSG>(
    namespace: impl ToString,
    pair: impl IntoIterator<Item = (impl ToString, bool)>
) -> Attribute<MSG>
Expand description

return a class namespaced with flag

Examples

use sauron::*;

let component = "fui";
let is_border = true;
let is_corner = false;

let expected: Attribute<()> = class("fui__border".to_string());
assert_eq!(expected, classes_flag_namespaced(component, [("border", is_border),("corner",
is_corner)]));