Function ambient_ui::use_focus_for_instance_id
source · pub fn use_focus_for_instance_id(
hooks: &mut Hooks<'_>,
instance_id: String
) -> (bool, FocusSetter)
Expand description
A hook that returns the current focus state for this element, given a specific instance_id
, and a callback to set the focus state.