Whether this item is the selected one. When nothing is focused yet, the selected item becomes the roving tab stop — mirrors React Aria seeding `focusedKey` from `firstSelectedKey`.
(mut self, selected: impl Fn() -> bool + 'static)
| 515 | /// selected item becomes the roving tab stop — mirrors React Aria seeding |
| 516 | /// `focusedKey` from `firstSelectedKey`. |
| 517 | pub(crate) fn selected(mut self, selected: impl Fn() -> bool + 'static) -> Self { |
| 518 | self.selected = Rc::new(selected); |
| 519 | self |
| 520 | } |
| 521 | } |
| 522 | |
| 523 | /// Register an item builder and return its handle: a roving `tabindex`, |
no outgoing calls
no test coverage detected