ui/client/features/live-preview/hooks/useFullScreenPreview
Cockpit client (features), next. Source: ui/client/features/live-preview/hooks/useFullScreenPreview.tsx.
Functions#
useFullScreenPreview()#
useFullScreenPreview(
available):object
Defined in: ui/client/features/live-preview/hooks/useFullScreenPreview.tsx:12
Showing the previewed app full screen: the shell's focus mode plus the two things a keyboard user needs from it — a shortcut in (Ctrl+Alt+F) and focus handed back to the trigger on the way out.
The iframe is never moved or remounted; only the chrome around it changes, so the app keeps its own state and the selected node survives the round trip.
Parameters#
available
boolean
Returns#
object
exit
exit: () =>
void
Returns
void
fullScreen
fullScreen:
boolean=focused
open
open: () =>
void
Returns
void
triggerRef
triggerRef:
RefObject<HTMLButtonElement|null>