Execute Callback

The Execute Callback action allows you to call a custom callback defined in a component or a page state. This is especially useful when components expose actions to be executed by their parent or other external contexts.

Note: To use this action, you must create a page state of type Action and pass it as a callback to the component.

Use Cases

  • Triggering a callback from inside a reusable component.

  • Passing actions dynamically from a page into child widgets.

  • Controlling component behavior externally.

Properties

Property
Description

actionName

The name of the callback action to invoke. This must match the page state variable of type Action.

argUpdates

(Required) An array of arguments to pass into the callback. Each item should be an object with key-value pairs representing argument names and values.

Default Behavior

  • The action looks up the callback from the current context using the actionName.

  • If found, it executes the callback with the provided arguments.

  • If the callback is not defined, no action is taken.

How to Use

  1. Define a page state of type Action, such as onSubmit, onConfirm, or any custom name.

  2. Bind this page state to a component expecting a callback input.

  3. Within the component, use Execute Callback and set the actionName to the state name defined in the parent.

  4. Provide any necessary arguments via argUpdates.

Last updated