Function sauron::prelude::disabled[][src]

pub fn disabled<MSG>(
    is_disabled: bool
) -> Attribute<&'static str, &'static str, AttributeValue<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![]);