Function focus

Source
pub fn focus<MSG>(is_focus: bool) -> Attribute<MSG>
Expand description

focus the html element

ยงExamples

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

let editor:Node<()> = textarea(vec![focus(true)], vec![]);