Skip to content

Commit aeeb08d

Browse files
SCAL-274111 Added hideTagFilterChips option to AppEmbed
1 parent 3e6d3d4 commit aeeb08d

File tree

3 files changed

+3601
-3494
lines changed

3 files changed

+3601
-3494
lines changed

src/embed/app.ts

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -367,6 +367,32 @@ export interface AppViewConfig extends AllEmbedViewConfig {
367367
* ```
368368
*/
369369
tag?: string;
370+
/**
371+
* Hide tag filter chips that appear when content is filtered by tags.
372+
* When enabled, this automatically:
373+
* - Hides tag filter indicators/chips from the UI
374+
* - Adds Action.ManageTags to hiddenActions (if not already present)
375+
* - Adds ListPageColumns.Tags to hiddenListColumns (if not already present)
376+
*
377+
* This provides a clean interface without tag-related UI elements.
378+
*
379+
* Supported embed types: `AppEmbed`
380+
* @version SDK: 1.42.1 | ThoughtSpot: 10.14.0.cl
381+
* @example
382+
* ```js
383+
* // Simple usage - automatically hides all tag-related UI
384+
* const embed = new AppEmbed('#tsEmbed', {
385+
* ... // other embed view config
386+
* tag: 'Some Tag',
387+
* hideTagFilterChips: true, // This is all you need!
388+
* });
389+
*
390+
* // No need to manually specify:
391+
* // hiddenActions: [Action.ManageTags],
392+
* // hiddenListColumns: [ListPageColumns.Tags]
393+
* ```
394+
*/
395+
hideTagFilterChips?: boolean;
370396
/**
371397
* The array of GUIDs to be hidden
372398
*
@@ -625,6 +651,7 @@ export class AppEmbed extends V1Embed {
625651
protected getEmbedParams() {
626652
const {
627653
tag,
654+
hideTagFilterChips,
628655
hideObjects,
629656
liveboardV2,
630657
showPrimaryNavbar,
@@ -708,6 +735,9 @@ export class AppEmbed extends V1Embed {
708735
if (tag) {
709736
params[Param.Tag] = tag;
710737
}
738+
if (hideTagFilterChips) {
739+
params[Param.HideTagFilterChips] = hideTagFilterChips;
740+
}
711741
if (hideObjects && hideObjects.length) {
712742
params[Param.HideObjects] = JSON.stringify(hideObjects);
713743
}

src/types.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4246,6 +4246,7 @@ export enum Param {
42464246
HideResult = 'hideResult',
42474247
UseLastSelectedDataSource = 'useLastSelectedSources',
42484248
Tag = 'tag',
4249+
HideTagFilterChips = 'hideTagFilterChips',
42494250
AutoLogin = 'autoLogin',
42504251
searchTokenString = 'searchTokenString',
42514252
executeSearch = 'executeSearch',

0 commit comments

Comments
 (0)