jbrowser.models.space
Generated from the source code of JBrowser 1.4.1.
Space model: an isolated workspace with its own web profile.
Constants#
| Name | Value |
|---|---|
SPACE_COLORS |
['#4c8dff', '#a66bff', '#ff6b9a', '#ff9f43', '#2ecc71', '#1abc9c', '#f1c40f', '#e74c3c'] |
SPACE_ICONS |
['๐ ', '๐ผ', '๐ ๏ธ', '๐ฌ', '๐ฎ', '๐ต', '๐', 'โ๏ธ', '๐ก', '๐งช', '๐ฐ', '๐', '๐จ', '๐ฑ', 'โก', '๐ถ๏ธ'] |
Space#
class Spacesource
Attributes
| Name | Value |
|---|---|
name |
str |
icon |
str = '๐ ' |
color |
str = SPACE_COLORS[0] |
incognito |
bool = False |
id |
str = field(default_factory=lambda: uuid.uuid4().hex[:12]) |
tabs |
list[Tab] = field(default_factory=list) |
active_tab_id |
str = '' |
selected |
set[str] = field(default_factory=set) |
anchor_tab_id |
str = '' |
proxy |
dict | None = None |
scroll |
float = 0.0 |
Space.index_of#
index_of(tab_id: str) -> intsource
Space.active_tab#
active_tab() -> Tab | Nonesource