pub trait Focusable: 'static {
// Required method
fn focus_handle(&self, cx: &App) -> FocusHandle;
}Expand description
Focusable allows users of your view to easily focus it (using window.focus_view(cx, view))
Required Methods§
Sourcefn focus_handle(&self, cx: &App) -> FocusHandle
fn focus_handle(&self, cx: &App) -> FocusHandle
Returns the focus handle associated with this view.