init
Table of Contents

init🔗

init(embedConfig: EmbedConfig ) : AuthEventEmitter

Initializes the Visual Embed SDK globally and perform authentication if applicable. This function needs to be called before any ThoughtSpot component like liveboard etc can be embedded. But need not wait for AuthEvent.SUCCESS to actually embed. That is handled internally.

Function Parameters

embedConfig

The configuration object containing ThoughtSpot host, authentication mechanism and so on.

Returns

Version : SDK: 1.0.0 | ThoughtSpot ts7.april.cl, 7.2.1

  const authStatus = init({
    thoughtSpotHost: 'https://my.thoughtspot.cloud',
    authType: AuthType.None,
  });
  authStatus.on(AuthStatus.FAILURE, (reason) => { // do something here });

Defined in : embed/base.ts