pub fn disabled<MSG>(is_disabled: bool) -> Attribute<MSG>
Expand description

set whether an element is disabled or not

Examples

use sauron::prelude::*;

let html: Node<()> =
    input(vec![r#type("checkbox"), disabled(true)], vec![]);