Function sauron::prelude::html::attributes::checked

source ·
pub fn checked<MSG>(is_checked: bool) -> Attribute<MSG>
Expand description

set the checked value, used checkbox and radio buttons

§Examples

use sauron::*;

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