Skip to content

createSendActionNameAction

Function: createSendActionNameAction()

taipy-gui JS module API


taipy-gui JS module API / createSendActionNameAction

createSendActionNameAction(name, context, value, ...args): Action

Create an action Action that will be used to update Context.

This action will trigger the invocation of the on_action Python function on the backend, providing all the parameters as a payload.

Parameters

name

The name of the action function on the backend.

undefined | string

context

The execution context.

undefined | string

value

unknown

The value associated with the action. This can be an object or any type of value.

args

...unknown[]

Additional information associated to the action.

Returns

Action

The action fed to the reducer.