A clone or more pseudo code that you would hope to work might be useful here.
init_components
sets the item
, initialises any data bindings
and sorts out your @properties
if you’ve created any.
raise_event_on_children
could be useful but it would only go 1 level and would need to use set_event_handler
to catch the event.
You could also iterate through components of a form either using form.get_components
or by going through its dir
with
for component_name in dir(self):
component = getattr(self, component_name)
if isinstance(component, Component):
# do somethings