MCPcopy Create free account
hub / github.com/DioxusLabs/dioxus-components / focus_last_where

Method focus_last_where

primitives/src/selectable.rs:164–167  ·  view source on GitHub ↗
(&mut self, predicate: impl Fn(&OptionState) -> bool)

Source from the content-addressed store, hash-verified

162 }
163
164 pub(crate) fn focus_last_where(&mut self, predicate: impl Fn(&OptionState) -> bool) {
165 let index = self.last_matching_enabled_index(predicate);
166 self.collection.set_focus(index);
167 }
168
169 pub(crate) fn select_value(&mut self, value: RcPartialEqValue) {
170 self.set_value.call(value);

Callers 1

focus_last_visibleMethod · 0.80

Calls 2

set_focusMethod · 0.45

Tested by

no test coverage detected