CustomAction
A code-based custom action to inject into the embedded ThoughtSpot UI.
Pass an array of these as customActions in the embed view config. When a
user invokes the action, the host emits EmbedEvent.CustomAction with
a CustomActionPayload carrying the same id.
Indexπ
Propertiesπ
dataModelIdsπ
dataModelIds: {modelColumnNames?: string[] , modelIds?: string[] }
Optional
Scope the action by data model, using model GUIDs or column names.
Allowed for VIZ, ANSWER, and SPOTTER targets.
Parameters
- modelColumnNames
-
Optional
-
modelColumnNames: string[]
-
- modelIds
-
Optional
-
modelIds: string[]
-
groupIdsπ
groupIds: string[]
Optional
Restrict the action to specific user groups by ID.
idπ
id: string
Unique identifier for the action. Echoed back as id on the
CustomActionPayload when the action is invoked.
metadataIdsπ
metadataIds: {answerIds?: string[] , liveboardIds?: string[] , vizIds?: string[] }
Optional
Scope the action to specific objects by GUID. Which keys are allowed
depends on target (for example, a VIZ action may use answerIds,
liveboardIds, and vizIds).
Parameters
- answerIds
-
Optional
-
answerIds: string[]
-
- liveboardIds
-
Optional
-
liveboardIds: string[]
-
- vizIds
-
Optional
-
vizIds: string[]
-
nameπ
name: string
Display label shown on the actionβs button or menu item.
orgIdsπ
orgIds: string[]
Optional
Restrict the action to specific organizations by ID.
positionπ
position: CustomActionsPosition
Where the action appears: a primary button, the "More" menu, or the right-click context menu. See CustomActionsPosition.
targetπ
target: CustomActionTarget
The surface the action applies to (Liveboard, visualization, Answer, or
Spotter). See CustomActionTarget. The allowed position values
and scoping keys depend on the target.