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 _windowWindow Window to search in
recursiveBoolean 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 idstring 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 namestring Returns:
- Type
- Window
-
require("ko/windows").getWindowByUrl(url)
-
Retrieve a window by its url
Parameters:
Name Type Description urlstring 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 _windowWindow The window to pin.