SageViewConfig
- Index
- Properties
- additionalFlags
- contextMenuTrigger
- customizations
- dataSource
- disableWorksheetChange
- disabledActionReason
- disabledActions
- doNotTrackPreRenderSize
- frameParams
- hiddenActions
- hideAutocompleteSuggestions
- hideSageAnswerHeader
- hideSampleQuestions
- hideSearchBarTitle
- hideWorksheetSelector
- insertAsSibling
- linkOverride
- locale
- preRenderId
- runtimeFilters
- runtimeParameters
- searchOptions
- showAlerts
- showObjectResults
- showObjectSuggestions
- visibleActions
The configuration attributes for the embedded Natural language search view. Based on GPT and LLM.
version:
: SDK: 1.23.0 | ThoughtSpot: 9.8.0.cl, 9.8.0.sw
Indexπ
Propertiesπ
additionalFlagsπ
additionalFlags: {[key: string ] : string | number | boolean}
Optional
This is an object (key/val) of override flags which will be applied to the internal embedded object. This can be used to add any URL flag. Warning: This option is for advanced use only and is used internally to control embed behavior in non-regular ways. We do not publish the list of supported keys and values associated with each.
Index Signature Parameters
Version : SDK: 1.9.0 | ThoughtSpot: 8.1.0.cl, 8.4.1.sw
contextMenuTriggerπ
contextMenuTrigger: ContextMenuTriggerOptions
Optional
flag to set ContextMenu Trigger to either left or right click.
Version : SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl
customizationsπ
customizations: CustomisationsInterface
Optional
Dynamic CSSUrl and customCSS to be injected in the loaded application.
You would also need to set style-src
in the CSP settings.
Version : SDK: 1.17.2 | ThoughtSpot: 8.4.1.sw, 8.4.0.cl
default
: ''
dataSourceπ
dataSource: string
Optional
The data source GUID (Worksheet GUID) to set on load.
disableWorksheetChangeπ
disableWorksheetChange: boolean
Optional
Disable the worksheet selection option.
Version : SDK: 1.26.0 | Thoughtspot: 9.8.0.cl, 9.8.0.sw
disabledActionReasonπ
disabledActionReason: string
Optional
The tooltip to display for disabled actions.
disabledActionsπ
disabledActions: Action[]
Optional
The list of actions to disable from the primary menu, more menu (β¦β), and the contextual menu. These actions will be disabled for the user. Use this to disable actions.
const embed = new LiveboardEmbed('#embed', {
... // other liveboard view config
disabledActions: [Action.Download, Action.Save]
});
doNotTrackPreRenderSizeπ
doNotTrackPreRenderSize: boolean
Optional
Determines whether the PreRender component should not dynamically track the size of its embedding element and adjust its own size accordingly. Enabling this option allows the PreRender component to automatically adapt its dimensions based on changes to the size of the embedding element.
default
: false
const config = { doNotTrackPreRenderSize: true, };
const myComponent = new MyComponent(config);
frameParamsπ
frameParams: FrameParams
Optional
The <b>width</b> and <b>height</b> dimensions to render an embedded object inside your app. Specify the values in pixels or percentage.
hiddenActionsπ
hiddenActions: Action[]
Optional
The list of actions to hide from the embedded. This actions will be hidden from the user. Use this to hide an action.
const embed = new LiveboardEmbed('#embed', {
... // other liveboard view config
hiddenActions: [Action.Download, Action.Export]
});
hideAutocompleteSuggestionsπ
hideAutocompleteSuggestions: boolean
Optional
Show or hide autocomplete suggestions for the search query string.
Version : SDK: 1.26.0 | Thoughtspot: 9.8.0.cl, 9.8.0.sw
hideSageAnswerHeaderπ
hideSageAnswerHeader: boolean
Optional
Show or hide the Answer header, that is, the AI Answer
title
at the top of the Answer page.
Version : SDK: 1.26.0 | Thoughtspot: 9.10.0.cl
hideSampleQuestionsπ
hideSampleQuestions: boolean
Optional
Show or hide sample questions. The sample questions are autogenerated based on the worksheet selected for the search operation.
Version : SDK: 1.26.0 | Thoughtspot: 9.8.0.cl, 9.8.0.sw
hideSearchBarTitleπ
hideSearchBarTitle: boolean
Optional
Show or hide the search bar title.
Version : SDK: 1.26.0 | Thoughtspot: 9.8.0.cl, 9.8.0.sw
hideWorksheetSelectorπ
hideWorksheetSelector: boolean
Optional
Hide the worksheet selection panel.
Version : SDK: 1.26.0 | Thoughtspot: 9.8.0.cl, 9.8.0.sw
insertAsSiblingπ
insertAsSibling: boolean
Optional
Insert as a sibling of the target container, instead of appending to a child inside it.
linkOverrideπ
linkOverride: boolean
Optional
flag to override openNew tab context menu link
Version : SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl
localeπ
locale: string
Optional
/** The locale/language to use for the embedded view.
Version : SDK: 1.9.4 | ThoughtSpot 8.1.0.cl, 8.4.1.sw
preRenderIdπ
preRenderId: string
Optional
PreRender id to be used for PreRendering the embed. Use PreRender to render the embed in the background and then show or hide the rendered embed using showPreRender or hidePreRender respectively.
Version : SDK: 1.25.0 | Thoughtspot: 9.6.0.cl
const embed = new LiveboardEmbed('#embed', {
... // other liveboard view config
preRenderId: "preRenderId-123"
});
embed.showPreRender();
runtimeFiltersπ
runtimeFilters: RuntimeFilter[]
Optional
The list of runtime filters to apply to a search answer, visualization, or Liveboard.
runtimeParametersπ
runtimeParameters: RuntimeParameter[]
Optional
The list of parameter override to apply to a search answer, visualization, or Liveboard.
Version : SDK : 1.25.0 | Thoughtspot: 9.2.0.cl, 9.5.0.sw
searchOptionsπ
searchOptions: SearchOptions
Optional
Includes the following properties:
searchQuery
: The search query string to pass in the search bar.
Supports Natural Language Search queries.
`executeSearch`: Boolean to define if the search should be executed or not. If it is executed, the focus is placed on the results. If itβs not executed, the focus is placed at the end of the token string in the search bar.
Version : SDK: 1.26.0 | Thoughtspot: 9.8.0.cl, 9.8.0.sw
searchOptions: {
searchQuery: 'average sales by country and product type',
executeSearch: true,
}
showAlertsπ
showAlerts: boolean
Optional
Show alert messages and toast messages in the embedded view.
Version : SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
showObjectResultsπ
showObjectResults: boolean
Optional
If set to true, a list of Liveboard and Answers related to the natural language search will be shown below the AI generated answer.
Deprecated : Currently Liveboard and Answers relatedto the natural language search will not be shown for sageembed
showObjectSuggestionsπ
showObjectSuggestions: boolean
Optional
Show or hide autocomplete suggestions for the search query string.
Deprecated : Currently, the object suggestions will not be shown for Natural Language Search.You can use {@link hideAutocompleteSuggestions} instead.
visibleActionsπ
visibleActions: Action[]
Optional
The list of actions to display from the primary menu, more menu (β¦β), and the contextual menu. These will be only actions that are visible to the user. Use this to hide all actions except the ones you want to show. Use either this or hiddenActions.
Version : SDK: 1.6.0 | ThoughtSpot: ts8.nov.cl, 8.4.1.sw