Skip to content

gi-nx


gi-nx / closeAppPanel

ts
function closeAppPanel(this: RpcCallContext, options?: {
  panelKey?: string;
}): Promise<boolean>;

Close a panel this app opened, or all of them.

Parameters ​

ParameterTypeDescription
thisRpcCallContext-
options.panelKey?string-

Returns ​

Promise<boolean>

true if there was anything to close.

Throws ​

If the panel belongs to another app.

Example ​

typescript
await rpc.invoke('closeAppPanel', [{ panelKey }]);
await rpc.invoke('closeAppPanel', []); // close them all