page
Page
Represents a page in a Zenaura application.
A Page is a container for components that are displayed together. It manages the lifecycle of its child components and handles rendering them to the DOM.
Attributes:
Name | Type | Description |
---|---|---|
count |
int
|
A unique identifier for the page. |
id |
str
|
A unique UUID for the page. |
children |
List[Component]
|
The list of components that belong to this page. |
Raises:
Type | Description |
---|---|
TypeError
|
If |
Source code in zenaura/client/page.py
__init__(children, attributes=None)
Initializes a new Page instance.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
children |
List[Component]
|
The list of components to be added to the page. |
required |
attributes |
Dict
|
list of attributes for the page wrapper div |
None
|