Function sauron::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![]);