Passing a Workflow as a Component Property

I’d like to pass a Workflow as a component property, just like a callback function that will be executed inside the component (clicking on a button for example).

But from what I’ve searched this isn’t possible on WeWeb.

You can do this by copying the workflow’s ID and pass it as a string into your component. Then you can use the wwLib to execute this method (global workflow) whenever you want.

You can add a Custom JavaScript code like this:

wwLib.executeWorkflow("<your_workflow_id_property>", { ...options })