CustomVisualViewAddEventHandler Method

Spotfire 14.2 API Reference
Adds an event handler which is called when any of the triggers fire.

Namespace:  Spotfire.Dxp.Application.Extension
Assembly:  Spotfire.Dxp.Application (in Spotfire.Dxp.Application.dll) Version: 64.0.19329.3263 (64.0.19329.3263)
Syntax

C#
protected void AddEventHandler(
	ExternalEventHandler eventHandler,
	params Trigger[] triggers
)

Parameters

eventHandler
Type: Spotfire.Dxp.Framework.DocumentModelExternalEventHandler
The event handler.
triggers
Type: Spotfire.Dxp.Framework.DocumentModelTrigger
The triggers that specify when to call the event handler.
Remarks

The event handler is called on the ApplicationThread but may not modify the document or the associated CustomVisual. It shall instead notify the HTML/Javascript part of the UI that it needs to update, which is made with a call to InvokeClientEventHandler(String, String). Event handlers by themselves are not sufficient to detect all changes to the document when there is a heavy load of modifications and concurrent reads. You must also override OnUpdateRequiredCore.
Version Information

Supported in: 14.2, 14.1, 14.0, 12.5, 12.4, 12.3, 12.2, 12.1, 12.0, 11.8, 11.7, 11.6, 11.5, 11.4
See Also

Reference