Host events with page context framework
The Visual Embed SDK introduces the HostEvent V2 framework for improved handling and execution of host events in embedded ThoughtSpot experiences with multi-layer UI interactions. The v2 framework supports the page context feature, which tracks the top-most active layer in the userβs current context. Developers can use this feature to route events based on the userβs current context or set a specific target context for precise and predictable handling of host events.
-
To enable this feature, set
useHostEventsV2totrue. -
To retrieve the current context, use
getCurrentContext(). -
To set a target context for a host event, use ContextType.
For more information, refer to the Host events documentation.