listener
option can be passed in order to respond to various widget events.
Syntax
javascript
Supported listeners
onWidgetOpen
Signature()
onWidgetClose
Signature()
onReconnect
Signature(entityId, flow)
Name | Type | Description |
---|---|---|
entityId | string | ID of the entity (source/target/connector) being reconnected |
flow | string | ID of the flow |
onPopupClose
Signature(id, flowId)
Name | Type | Description |
---|---|---|
id | string | ID of source/target being linked |
flowId | string | ID of flow being linked |
onSourceLinked
Signature(source, flowId, tenantId)
Name | Type | Description |
---|---|---|
source | object | The source that has been linked. Follows same response structure as linked sources API |
flowId | string | ID of flow that has been linked |
tenantId | string | ID of the tenant |
onTargetLinked
Signature(target, flowId)
Name | Type | Description |
---|---|---|
target | object | The target that has been linked. Follows same response structure as linked targets API |
flowId | string | ID of flow that has been linked |
onConnectorLinked
Signature(connector, flowId, tenantId)
Name | Type | Description |
---|---|---|
connector | object | The connector that has been linked |
flowId | string | ID of flow that has been linked |
tenantId | string | ID of the tenant |
onSourceLinkCanceled
Signature(tapId, flowId)
Name | Type | Description |
---|---|---|
tapId | string | ID of source |
flowId | string | ID of flow |
onConnectorLinkCanceled
Signature(connectorId, flowId)
Name | Type | Description |
---|---|---|
connectorId | string | ID of connector |
flowId | string | ID of flow |
onSourceUnlinked
Signature(source, flowId)
Name | Type | Description |
---|---|---|
source | string | The source that has been unlinked |
flowId | string | ID of flow that has been unlinked |
onConnectorUnlinked
Signature(connector, flowId)
Name | Type | Description |
---|---|---|
connector | string | The connector that has been unlinked |
flowId | string | ID of flow that has been unlinked |
onTargetUnlinked
Signature(target, flowId)
Name | Type | Description |
---|---|---|
target | string | The target that has been unlinked |
flowId | string | ID of flow that has been unlinked |
onTargetLinkCanceled
Signature(targetId, flowId)
Name | Type | Description |
---|---|---|
targetId | string | ID of target |
flowId | string | ID of flow |
onSourceLinkFailed
Signature(source, flowId, tenant, errorMessage)
Name | Type | Description |
---|---|---|
source | string | object | The source that failed to link |
flowId | string | ID of flow |
tenant | string | ID of the tenant |
errorMessage | string | Error message describing the failure |
onConnectorLinkFailed
Signature(connector, flowId, tenant, errorMessage)
Name | Type | Description |
---|---|---|
connector | string | object | The connector that failed to link |
flowId | string | ID of flow |
tenant | string | ID of the tenant |
errorMessage | string | Error message describing the failure |
onTargetLinkFailed
Signature(target, flowId, tenant, errorMessage)
Name | Type | Description |
---|---|---|
target | string | object | The target that failed to link |
flowId | string | ID of flow |
tenant | string | ID of the tenant |
errorMessage | string | Error message describing the failure |
onStartJob
Signature(tap_id, flow_id, user_id)
Name | Type | Description |
---|---|---|
tap_id | string | ID of source the job is running for |
flow_id | string | ID of flow source is linked under |
user_id | string | ID of the tenant who started job |
onFieldMapSave
Signature(entityId, flowId, tenantId)
Name | Type | Description |
---|---|---|
entityId | string | ID of the entity |
flowId | string | ID of the flow |
tenantId | string | ID of the tenant |
onCustomMappingSave
Signature(entityId, flowId, tenantId)
Name | Type | Description |
---|---|---|
entityId | string | ID of the entity |
flowId | string | ID of the flow |
tenantId | string | ID of the tenant |