focus

Function focus 

Source
pub fn focus(node_ref: &NodeRef)
Expand description

Focus an HTML input element.

The ref must point to an web_sys::HtmlElement, if it does not, the function does nothing.