@jsvision/ui / PopupHost
Interface: PopupHost
Defined in: ui/src/view/types.ts:183
The overlay + focus host an anchored popup needs to mount and focus itself. Supplied by the app shell (or a bare Dialog) and reached by a leaf control through ev.popupHost. It exposes the overlay to mount into plus focus save/restore.
Properties
overlay
readonlyoverlay:Group
Defined in: ui/src/view/types.ts:185
The full-viewport, top-most overlay Group to mount the popup (and its outside-click catcher) into.
Methods
focusView()
focusView(
view):void
Defined in: ui/src/view/types.ts:187
Focus a view — the popup focuses its list on open; a non-focusable target is a no-op.
Parameters
view
Returns
void
getFocused()
getFocused():
View|null
Defined in: ui/src/view/types.ts:189
The currently-focused view (saved before the popup opens, restored on dismiss), or null.
Returns
View | null