|
@@ -246,7 +246,7 @@ export type WindowLabel = string
|
|
* A webview window handle allows emitting and listening to events from the backend that are tied to the window.
|
|
* A webview window handle allows emitting and listening to events from the backend that are tied to the window.
|
|
*/
|
|
*/
|
|
class WebviewWindowHandle {
|
|
class WebviewWindowHandle {
|
|
- /** Window label. */
|
|
|
|
|
|
+ /** The window label. It is a unique identifier for the window, can be used to reference it later. */
|
|
label: WindowLabel
|
|
label: WindowLabel
|
|
/** Local event listeners. */
|
|
/** Local event listeners. */
|
|
listeners: { [key: string]: Array<EventCallback<any>> }
|
|
listeners: { [key: string]: Array<EventCallback<any>> }
|
|
@@ -1117,7 +1117,7 @@ class WindowManager extends WebviewWindowHandle {
|
|
class WebviewWindow extends WindowManager {
|
|
class WebviewWindow extends WindowManager {
|
|
/**
|
|
/**
|
|
* Creates a new WebviewWindow.
|
|
* Creates a new WebviewWindow.
|
|
- * * @param label The webview window label. It must be alphanumeric.
|
|
|
|
|
|
+ * * @param label The webview window label, a unique identifier that can be used to reference it later. It must be alphanumeric.
|
|
* @returns The WebviewWindow instance to communicate with the webview.
|
|
* @returns The WebviewWindow instance to communicate with the webview.
|
|
*/
|
|
*/
|
|
constructor(label: WindowLabel, options: WindowOptions = {}) {
|
|
constructor(label: WindowLabel, options: WindowOptions = {}) {
|