Skip to content

ComponentEvent

Source code in docs_src/capo_amplifyuibuilder/types/component_event.py
class ComponentEvent(TypedDict, closed=True):
    action: NotRequired["str"]
    """<p>The action to perform when a specific event is raised.</p>"""
    parameters: NotRequired[
        "capo_amplifyuibuilder.types.action_parameters.ActionParameters"
    ]
    """<p>Describes information about the action.</p>"""
    binding_event: NotRequired["str"]
    """<p>Binds an event to an action on a component. When you specify a <code>bindingEvent</code>, the event is called when the action is performed.</p>"""

action instance-attribute

action: NotRequired[str]

The action to perform when a specific event is raised.

binding_event instance-attribute

binding_event: NotRequired[str]

Binds an event to an action on a component. When you specify a bindingEvent, the event is called when the action is performed.

parameters instance-attribute

parameters: NotRequired[ActionParameters]

Describes information about the action.