Mediates with all the windows existing within Komodo
A window can refer both to an internal window (eg. an iframe) as well as a standalone application window
Methods
-
require("ko/windows").getAll()
-
Retrieve all windows (including internal)
Returns:
- Type
- Array
-
require("ko/windows").getBrowserWindows(_window, recursive)
-
Get browser windows residing within the given window
Parameters:
Name Type Description _window
Window Window to search in
recursive
Boolean Recursively search within each window
Returns:
- Type
- Array
-
require("ko/windows").getMain()
-
Retrieve the main komodo window
Returns:
- Type
- Window
-
require("ko/windows").getMostRecent(id)
-
Retrieve most recently accessed (current) window
Parameters:
Name Type Description id
string Returns:
- Type
- Window
-
require("ko/windows").getWidgetWindows()
-
Get windows belonging to widgets (side panes)
Returns:
- Type
- Array
-
require("ko/windows").getWindowByName(name)
-
Retrieve a window by its name
Parameters:
Name Type Description name
string Returns:
- Type
- Window
-
require("ko/windows").getWindowByUrl(url)
-
Retrieve a window by its url
Parameters:
Name Type Description url
string Returns:
- Type
- Window
-
require("ko/windows").getWindows()
-
Retrieve all windows (excluding internal)
Returns:
- Type
- Array
-
require("ko/windows").pin(_window)
-
Pin window ontop of other windows including non Komodo windows.
Parameters:
Name Type Description _window
Window The window to pin.