Function disabled

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

set whether an element is disabled or not

ยงExamples

use sauron::{*, html::*, html::attributes::*};

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