Skip to content

createRequestUpdateAction

Function: createRequestUpdateAction()

taipy-gui JS module APIDocs


taipy-gui JS module API / createRequestUpdateAction

createRequestUpdateAction(id, context, names, forceRefresh, stateContext?): Action

Create a request update Action that will be used to update the Context.

This action will generate an update of the elements holding the variables named names on the front-end.

Parameters

id: undefined | string

The identifier of the visual element.

context: undefined | string

The execution context.

names: string[]

The names of the requested variables as received in updateVarName and/or updateVars properties.

forceRefresh: boolean = false

Should Taipy re-evaluate the variables or use the current values

stateContext?: Record\<string, unknown>

Returns

Action

The action fed to the reducer.