BaseControl
Properties
-
data
(Any
) –Arbitrary data of any type.
-
key
(KeyValue | None
) – -
page
(Page | BasePage
) –The page to which this control belongs to.
-
parent
(BaseControl | None
) –The direct ancestor(parent) of this control.
Methods
-
before_event
– -
build
–Called once during control initialization to define its child controls.
-
did_mount
– -
is_isolated
– -
update
– -
will_unmount
–
Properties#
parent
#
parent: BaseControl | None
The direct ancestor(parent) of this control.
It defaults to None
and will only have a value when this control is mounted
(added to the page tree).
The Page
control (which is the root of the tree) is an exception - it always
has parent=None
.
Methods#
build
#
Called once during control initialization to define its child controls. self.page is available in this method.