Karana.WebUI.easydock#
Classes#
Module Contents#
- class Karana.WebUI.easydock.EasyDock(port: int = 0)[source]#
- server#
- router#
- dock#
- iframes = []#
- property port: int#
The server’s port
- Returns:
The port
- Return type:
int
- property url: str#
The server’s base url
- Returns:
The base url
- Return type:
str
- addFrame(url: str, title: str = 'untitled', *, relative_to: str | None = None, direction: Literal['left', 'right', 'above', 'below', 'within'] | None = None) str[source]#
Add an IFrame panel to the dock
- Parameters:
url (str) – The url to open in the iframe
title (str) – Title of the panel containing the iframe
relative_to (str | None) – Id returned from a previous call from a frame to position relative to
direction (Literal["left", "right", "above", "below", "within"] | None) – If relative_to was given, how to position the new frame
- Returns:
Id to refer to the added frame
- Return type:
str