mad1 - Hi Team, Is there any way to disable or ...
Hi Team, Is there any way to disable or hide buttons in the ThoughtSpot Embed, for example hiding or disable the save button so that no changes from business users are able to make any kind of changes. Can we do this ?
6 Replies
You can mention actions https://developers.thoughtspot.com/docs/Enumeration_Action in hidden/visible/disabled actions in a config. More info in the link
Action
ThoughtSpot application pages include actions and menu commands for various user-initiated operations. These actions are represented as enumeration members in the SDK. To show, hide, or disable specific actions in the embedded view, define the Action enumeration members in the
disabledActions
, visibleActions
, or hiddenActions
array.Okay, That was helpfull @shikharTS , Thank You
Hi, Can we also disable/hide the custom actions in TS embed ?
yes, you can use the same hidden/visible actions array for custom actions as well
I tired but it didn't work. any code references if you could share ?
It is a bit non-standard, but this should probably work. You can show/hide custom actions by the action id
visibleActions={
["menu-action", "context-action"] as unknown as Action[]
}
Okay, Thanks @shikharTS , I'll try this