Class: DesignViewerContext
Context for Design Viewer module operations
Extends
WorkflowContext<ActionContext<DesignViewerDesignConfig>>
Implements
Constructors
Constructor
new DesignViewerContext(context): DesignViewerContext;
Parameters
Parameter
Type
contextActionContext<DesignViewerDesignConfig>Returns
DesignViewerContext
Overrides
Properties
Property
Modifier
Type
Inherited from
Methods
updateDesignAssets()
updateDesignAssets(assets): void;
Updates the design asset(s) rendered in an already-open design viewer, re-rendering it in place with the new Asset(s). Fire-and-forget: the message is dispatched to the agent and this returns immediately.
Parameters
Parameter
Type
Description
Returns
void
Implementation of
IDesignViewerContext.updateDesignAssets
sendCustomMessage()
sendCustomMessage(data): void;
Sends a message to the SDK Agent to update the state of current running workflow.
Parameters
Parameter
Type
Description
dataunknownincoming data coming from client to update the workflow. Note - Type of data is limited to what postMessage supports.
Returns
void