VisualizationFrame
The VisualizationFrame class is the main entry point for the elfsquad/third-party-visualization library. It provides methods to embed & communicate with custom visualization.
constructor(options)
Initializes a new instance of the third-party visualization.
Method parameters
The options used to initialize the showroom.
getNativeElement()
Retrieves the native iframe element.
Returns (HTMLIFrameElement)
The native iframe element.
onTriggerConfigurationUpdate(callback)
Registers a callback function to be invoked when a configuration update is triggered.
Method parameters
The callback function to be called when a configuration update is triggered.
onUpdateRequirement(callback)
Registers a callback function to be invoked when a requirement should be updated.
Method parameters
The callback function to be called when a requirement should be updated.
onUpdateRequirements(callback)
Registers a callback function to be invoked when multiple requirements should be updated.
Method parameters
The callback function to be called when multiple requirements should be updated.
onUpdateImageValue(callback)
Registers a callback function to be invoked when an image value should be updated.
Method parameters
The callback function to be called when an image value should be updated.
onUpdateTextValue(callback)
Registers a callback function to be invoked when a text value should be updated.
Method parameters
The callback function to be called when a text value should be updated.
onUpdateLinkedConfigurationCardinality(callback)
Registers a callback function to be invoked when a linked configuration cardinality should be updated.
Method parameters
The callback function to be called when a linked configuration cardinality should be updated.
onDragStarted(callback)
Registers a callback function to be invoked when a drag operation is started.
Method parameters
The callback function to be called when a drag operation is started.
onRemoveLinkedConfiguration(callback)
Registers a callback function to be invoked when a linked configuration should be removed.
Method parameters
The callback function to be called when a linked configuration should be removed.
sendConfigurationUpdated(configuration)
Trigger a configuration update in the third-party visualization.
Method parameters
The configuration to send to the third-party visualization.
sendStepChanged(step)
Trigger a step changed event in the third-party visualization.
Method parameters
The step to send to the third-party visualization.
EventSender
The EventSender class provides methods to send events to the parent window.
constructor(targetWindow)
Method parameters
sendTriggerConfigurationUpdate()
Send a triggerConfigurationUpdate event to the parent window.
sendUpdateRequirement(data)
Send an updateRequirement event to the parent window.
Method parameters
The UpdateRequirement payload.
sendDragStarted(data)
Send a dragStarted event to the parent window.
Method parameters
The ConfigurationFeature payload.
sendUpdateRequirements(data)
Send an updateRequirements event to the parent window.
Method parameters
The UpdateRequirements payload.
sendUpdateImageValue(data)
Send an updateImageValue event to the parent window.
Method parameters
The UpdateImageValue payload.
sendUpdateTextValue(data)
Send an updateTextValue event to the parent window.
Method parameters
The UpdateTextValue payload.
sendUpdateLinkedConfigurationCardinality(data)
Send an updateLinkedConfigurationCardinality event to the parent window.
Method parameters
The UpdateLinkedConfigurationCardinality payload.
sendRemoveLinkedConfiguration(data)
Send a removeLinkedConfiguration event to the parent window.
Method parameters
The RemoveLinkedConfiguration payload.