Function patternfly_yew::utils::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.
pub fn focus(node_ref: &NodeRef)
Focus an HTML input element.
The ref must point to an web_sys::HtmlElement
, if it does not, the function does nothing.