Closed FabienArcellier closed 4 months ago
On a click or an event, a developer can consult the identifier at the origin of the event from the context. This allows it to adapt the behavior of its event handler or to retrieve the parent to add interface components.
def increment(state, context): print(context['target'])
def increment(state, ui, context): container = ui.parent(context['target']) with ui.find(container): pass
def increment(state, ui, context): container = ui.parent(context['target'], level=3) # third parent with ui.find(container): pass
Context
On a click or an event, a developer can consult the identifier at the origin of the event from the context. This allows it to adapt the behavior of its event handler or to retrieve the parent to add interface components.
definition of done
Context
into EventHandler