Sorry if I googled poorly, please share your valuable experience or link.
I have a problem with how to get the element I need on the page. I know this method for example:
page.controls[0]
and further rummage through the controls with content, falling deeper and deeper.
I don’t really like relying on the serial number.
You can, of course, cover yourself with filters, but only if you have no choice.
The main question is how to correctly search for an element on a page?
Sub-questions:
I noticed that all elements have a “key” attribute in the same ft.Container, for example, what is it for, can it help in the search?
Here I have a method:
def collapse(self, e: ft.ControlEvent):
e.control.rotate.angle += pi
e.page.update()
I found an element (e.control) that triggers an event, can we move relative to it to the top to the parent?
In general, is there some way to display something like a project map in the console for convenience, or something similar where all the elements are listed with nesting?