gi-nx / closeAppPanel
ts
function closeAppPanel(this: RpcCallContext, options?: {
panelKey?: string;
}): Promise<boolean>;Close a panel this app opened, or all of them.
Parameters
| Parameter | Type | Description |
|---|---|---|
this | RpcCallContext | - |
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