SearchViewConfig
- Index
- Properties
- additionalFlags
- answerId
- collapseDataPanel
- collapseDataSources
- collapseSearchBar
- collapseSearchBarInitially
- contextMenuTrigger
- customActions
- customizations
- dataPanelCustomGroupsAccordionInitialState
- dataPanelV2
- dataSource
- dataSources
- disableRedirectionLinksInNewTab
- disabledActionReason
- disabledActions
- doNotTrackPreRenderSize
- enableCustomColumnGroups
- enableLinkOverridesV2
- enableSearchAssist
- enableV2Shell_experimental
- excludeRuntimeFiltersfromURL
- excludeRuntimeParametersfromURL
- excludeSearchTokenStringFromURL
- exposeTranslationIDs
- focusSearchBarOnRender
- forceTable
- frameParams
- hiddenActions
- hideDataSources
- hideResults
- hideSearchBar
- insertAsSibling
- interceptTimeout
- interceptUrls
- isOnBeforeGetVizDataInterceptEnabled
- isThisPeriodInDateFiltersEnabled
- linkOverride
- locale
- newChartsLibrary
- overrideOrgId
- preRenderId
- refreshAuthTokenOnNearExpiry
- runtimeFilters
- runtimeParameters
- searchOptions
- searchQuery
- shouldBypassPayloadValidation
- showAlerts
- useHostEventsV2
- useLastSelectedSources
- visibleActions
- visualOverrides
The configuration attributes for the embedded search view.
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. If the same flags are passed in init, they will be overridden by the values here. 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.
Supported embed types: AppEmbed, LiveboardEmbed, SearchEmbed, SpotterAgentEmbed, SpotterEmbed, SearchBarEmbed
Index Signature Parameters
Version : SDK: 1.9.0 | ThoughtSpot: 8.1.0.cl, 8.4.1.sw
// Replace <EmbedComponent> with embed component name. For example, AppEmbed, SearchEmbed, or LiveboardEmbed
const embed = new <EmbedComponent>('#tsEmbed', {
... // other embed view config
additionalFlags: {
flag1: 'value1',
flag2: 'value2'
},
});
answerIdπ
answerId: string
Optional
The GUID of a saved answer to load initially.
Supported embed types: SearchEmbed
Version : SDK: 1.1.0 | ThoughtSpot: 8.1.0.sw
const embed = new SearchEmbed('#tsEmbed', {
... // other embed view config
answerId:'sed-1234',
})
collapseDataPanelπ
collapseDataPanel: boolean
Optional
If set to true, the data panel is collapsed on load, but can be expanded manually.
Supported embed types: SearchEmbed
Version : SDK: 1.34.0 | ThoughtSpot: 10.3.0.cl
const embed = new SearchEmbed('#tsEmbed', {
... // other embed view config
collapseDataPanel:true,
})
collapseDataSourcesπ
collapseDataSources: boolean
Optional
If set to true, the data sources panel is collapsed on load, but can be expanded manually.
Supported embed types: SearchEmbed
Version : SDK: 1.1.0 | ThoughtSpot: 8.1.0.sw
const embed = new SearchEmbed('#tsEmbed', {
... // other embed view config
collapseDataSources:true,
})
collapseSearchBarπ
collapseSearchBar: boolean
Optional
To set the initial state of the search bar in case of saved Answers.
Supported embed types: AppEmbed, SearchBarEmbed
Version : SDK: 1.34.0 | ThoughtSpot: 10.3.0.cl
default : true
// Replace <EmbedComponent> with embed component name. For example, AppEmbed, or SearchBarEmbed
const embed = new <EmbedComponent>('#tsEmbed', {
... // other embed view config
collapseSearchBar: true,
});
collapseSearchBarInitiallyπ
collapseSearchBarInitially: boolean
Optional
To set the initial state of the search bar in case of saved-answers.
Version : SDK: 1.32.0 | ThoughtSpot: 10.0.0.cl
Deprecated : Use {@link collapseSearchBar} instead
default : false
contextMenuTriggerπ
contextMenuTrigger: ContextMenuTriggerOptions
Optional
flag to set ContextMenu Trigger to either left or right click.
Supported embed types: AppEmbed, SearchEmbed
Version : SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl
// Replace <EmbedComponent> with embed component name. For example, AppEmbed, or SearchEmbed
const embed = new <EmbedComponent>('#tsEmbed', {
... // other embed view config
contextMenuTrigger:ContextMenuTriggerOptions.LEFT_CLICK || RIGHT_CLICK,
})