ContextType
Version 26.4.0.cl is now available. Read about the new features and enhancements.

ContextType

Context types for specifying the page context when triggering host events. Used as the third parameter in the trigger method to help ThoughtSpot understand the current page context for better event handling.

Version : SDK: 1.45.2 | ThoughtSpot: 26.3.0.cl

import { HostEvent, ContextType } from '@thoughtspot/visual-embed-sdk';

// Trigger an event with specific context
embed.trigger(HostEvent.Pin, { vizId: "123", liveboardId: "456" }, ContextType.Search);

Enumeration members🔗

Answer🔗

Answer:= "answer"

Answer context for explore modal/page on liveboard page.

Defined in : types.ts

Liveboard🔗

Liveboard:= "liveboard"

Liveboard context for liveboard page.

Defined in : types.ts

Other🔗

Other:= "other"

Other context for any other generic page.

Defined in : types.ts

Search:= "search-answer"

Search answer context for search page or edit viz dialog on liveboard page.

Defined in : types.ts

Spotter🔗

Spotter:= "spotter"

Spotter context for spotter modal/page.

Defined in : types.ts

© 2026 ThoughtSpot Inc. All Rights Reserved.