Skip to main content

Function: minimizeLabelFor()

function minimizeLabelFor(record: Pick<WindowRecord, "minimized">): "MIN" | "MAX";

Defined in: packages/webxr-uiextensions/src/core/window-manager.ts:112

What the minimize affordance should read for a window's current state - the label always names what the NEXT click does, matching pinLabelFor:

  • open → "MIN" (click collapses the content)
  • minimized → "MAX" (click restores it)

Parameters

ParameterType
recordPick<WindowRecord, "minimized">

Returns

"MIN" | "MAX"