SearchEmbed
Embed ThoughtSpot search
Index🔗
Constructors🔗
new SearchEmbed(domSelector: DOMSelector , viewConfig: SearchViewConfig ) : SearchEmbed
Function Parameters
- domSelector
-
-
domSelector: DOMSelector
-
- viewConfig
-
-
viewConfig: SearchViewConfig
-
Returns
Defined in : embed/search.ts
Overrides TsEmbed.constructor
Methods🔗
destroy🔗
destroy() : void
Destroys the ThoughtSpot embed, and remove any nodes from the DOM.
Returns
void
Version : SDK: 1.19.1 | ThoughtSpot: *
Defined in : embed/ts-embed.ts
Inherited from TsEmbed.destroy
getAnswerService🔗
getAnswerService(vizId?: string ) : Promise< AnswerService >
Returns the answerService which can be used to make arbitrary graphql calls on top session.
Function Parameters
- vizId
-
Optional
-
vizId: string
-
to get for a specific viz in case of a Liveboard.
Returns
Promise< AnswerService >
Version : SDK: 1.25.0 / ThoughtSpot 9.10.0
Defined in : embed/ts-embed.ts
Inherited from TsEmbed.getAnswerService
getIFrameSrc🔗
getIFrameSrc() : string
Construct the URL of the embedded ThoughtSpot search to be loaded in the iframe
Returns
string
Defined in : embed/search.ts
getIframeSrc🔗
getIframeSrc() : string
Returns
string
Defined in : embed/ts-embed.ts
Inherited from TsEmbed.getIframeSrc
getPreRenderIds🔗
getPreRenderIds() : {child?: string = …​, wrapper?: string = …​}
Retrieves unique HTML element IDs for PreRender-related elements. These IDs are constructed based on the provided 'preRenderId' from 'viewConfig'.
Returns
{child?: string = …​, wrapper?: string = …​}
property
: {string} wrapper - The HTML element ID for the PreRender wrapper.
property
: {string} child - The HTML element ID for the PreRender child.
Defined in : embed/ts-embed.ts
Inherited from TsEmbed.getPreRenderIds
getThoughtSpotPostUrlParams🔗
getThoughtSpotPostUrlParams(additionalParams?: {[key: string ] : string | number} = {}) : string
Get the Post Url Params for THOUGHTSPOT from the current host app URL. THOUGHTSPOT URL params starts with a prefix "ts-"
Function Parameters
- additionalParams
-
-
additionalParams: {[key: string ] : string | number} = {}
-
Index Signature Parameters
Returns
string
Version : SDK: 1.14.0 | ThoughtSpot: 8.4.0.cl, 8.4.1-sw
Defined in : embed/ts-embed.ts
Inherited from TsEmbed.getThoughtSpotPostUrlParams
getUnderlyingFrameElement🔗
getUnderlyingFrameElement() : HTMLIFrameElement
Returns
HTMLIFrameElement
Defined in : embed/ts-embed.ts
Inherited from TsEmbed.getUnderlyingFrameElement