Class: WindowNamespace
Hierarchy
NamespaceBase
↳
WindowNamespace
Methods
closeAllFloatingWidgets
▸ closeAllFloatingWidgets(): Promise
<void
>
Returns
Promise
<void
>
closeFloatingWidget
▸ closeFloatingWidget(floatingWidgetId
): Promise
<void
>
Parameters
Name | Type |
---|---|
floatingWidgetId | string |
Returns
Promise
<void
>
getCurrentWindowTree
▸ getCurrentWindowTree(): Promise
<PaneRemWindowTree
>
Returns
Promise
<PaneRemWindowTree
>
getFocusedPaneId
▸ getFocusedPaneId(): Promise
<string
>
Returns
Promise
<string
>
getLastFocusedPane
▸ getLastFocusedPane(): Promise
<undefined
| string
>
Returns
Promise
<undefined
| string
>
getOpenPaneIds
▸ getOpenPaneIds(): Promise
<string
[]>
Returns
Promise
<string
[]>
getOpenPaneRemId
▸ getOpenPaneRemId(paneId
): Promise
<undefined
| string
>
Parameters
Name | Type |
---|---|
paneId | undefined | string |
Returns
Promise
<undefined
| string
>
getOpenPaneRemIds
▸ getOpenPaneRemIds(): Promise
<string
[]>
Returns
Promise
<string
[]>
getURL
▸ getURL(): Promise
<string
>
Returns
Promise
<string
>
isFloatingWidgetOpen
▸ isFloatingWidgetOpen(floatingWidgetId
): Promise
<boolean
>
Parameters
Name | Type |
---|---|
floatingWidgetId | string |
Returns
Promise
<boolean
>
isOnPage
▸ isOnPage(page
): Promise
<boolean
>
Parameters
Name | Type |
---|---|
page | Queue |
Returns
Promise
<boolean
>
openFloatingWidget
▸ openFloatingWidget(fileName
, position
, classContainer?
, closeWhenClickOutside?
): Promise
<string
>
Parameters
Name | Type |
---|---|
fileName | string |
position | Object |
position.bottom? | number |
position.left? | number |
position.right? | number |
position.top? | number |
classContainer? | string |
closeWhenClickOutside? | boolean |
Returns
Promise
<string
>
openRem
▸ openRem(rem
): Promise
<void
>
Parameters
Name | Type |
---|---|
rem | Rem |
Returns
Promise
<void
>
openWidgetInPane
▸ openWidgetInPane(fileName
, contextData?
): Promise
<string
[]>
Parameters
Name | Type |
---|---|
fileName | string |
contextData? | Record <string , any > |
Returns
Promise
<string
[]>
openWidgetInRightSidebar
▸ openWidgetInRightSidebar(fileName
, contextData?
): Promise
<string
[]>
Parameters
Name | Type |
---|---|
fileName | string |
contextData? | Record <string , any > |
Returns
Promise
<string
[]>
releaseKeys
▸ releaseKeys(floatingWidgetId
, keys
): Promise
<void
>
Parameters
Name | Type |
---|---|
floatingWidgetId | string |
keys | string [] |
Returns
Promise
<void
>
setCurrentWindowTreeFromString
▸ setCurrentWindowTreeFromString(treeString
): Promise
<void
>
Parameters
Name | Type |
---|---|
treeString | string |
Returns
Promise
<void
>
setFloatingWidgetPosition
▸ setFloatingWidgetPosition(floatingWidgetId
, position
): Promise
<void
>
Parameters
Name | Type |
---|---|
floatingWidgetId | string |
position | Object |
position.bottom? | number |
position.left? | number |
position.right? | number |
position.top? | number |
Returns
Promise
<void
>
setFocusedPaneId
▸ setFocusedPaneId(paneId
): Promise
<void
>
Parameters
Name | Type |
---|---|
paneId | string |
Returns
Promise
<void
>
setRemWindowTree
▸ setRemWindowTree(tree
): Promise
<void
>
Parameters
Name | Type |
---|---|
tree | RemIdWindowTree |
Returns
Promise
<void
>
setURL
▸ setURL(url
): Promise
<void
>
Parameters
Name | Type |
---|---|
url | string |
Returns
Promise
<void
>
stealKeys
▸ stealKeys(floatingWidgetId
, keys
): Promise
<void
>
Parameters
Name | Type |
---|---|
floatingWidgetId | string |
keys | string [] |
Returns
Promise
<void
>