Function sauron_core::html::attributes::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![]);