Athena.webview.utilities ​
Functions ​
closePages ​
Usage
Athena.webview.utilities.closePages(player
, pages?
): void
Closes all pages if no pages are specified. If pages are specified it only closes those specific pages.
Parameters ​
Name | Type | Default value |
---|---|---|
player | Player | undefined |
pages? | string [] | [] |
Returns ​
void
Defined in ​
server/webview/utilities.ts:22
emit ​
Usage
Athena.webview.utilities.emit(player
, eventName
, ...args
): void
Emits an event directly to the client's WebView.
Static
Parameters ​
Name | Type |
---|---|
player | Player |
eventName | string |
...args | any [] |
Returns ​
void