[][src]Function sauron::prelude::html::attributes::attrs_flag

pub fn attrs_flag<V, MSG, P>(
    trio: P
) -> Vec<Attribute<&'static str, &'static str, AttributeValue, Event, MSG>>

Notable traits for Vec<u8>

impl Write for Vec<u8>
where
    P: AsRef<[(&'static str, V, bool)]>,
    V: Into<Value> + Clone

A helper function for setting attributes with no values such as checked in checkbox input type This is best called to be appended to the node since this returns an array of attributes which doesn't play well with the others Example:

This example is not tested
input([r#type("checkbox")], []).attributes(attrs_flag([(
                            "checked",
                            "checked",
                            is_checked,
                        )])),