Function sauron::prelude::focus [−][src]
pub fn focus<MSG>(
is_focus: bool
) -> Attribute<&'static str, &'static str, AttributeValue<MSG>>
Expand description
focus the html element
Examples
use sauron::prelude::*;
let editor:Node<()> = textarea(vec![focus(true)], vec![]);