Skip to content

createSendActionNameAction

Function: createSendActionNameAction()

taipy-gui JS module APIDocs


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: undefined | string

The name of the action function on the backend.

context: undefined | string

The execution context.

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.