pub fn select<'a>(
id: impl Into<WidgetId>,
rect: Rect,
options: &'a [&'a str],
) -> SelectBuilder<'a>Expand description
A select showing options[selected]. The trigger is id; options are
"{id}:list:item:{i}" (i = index into options). The open state (flag,
highlighted row, search text, scroll) lives in the widget state store.
The open list behaves like a native one (SelectState): forward this
frame’s key with .key and arrows / Page / Home /
End move, Enter picks, Escape closes, typing filters a searchable list;
Enter, Space or ArrowDown on the focused trigger opens it. The list opens
under the trigger and stays inside .within
(the dialog that hosts it), flipping above or shifting as needed.