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
shikharTS
shikharTS5mo ago
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.
R19
R19OP5mo ago
Okay, That was helpfull @shikharTS , Thank You Hi, Can we also disable/hide the custom actions in TS embed ?
shikharTS
shikharTS5mo ago
yes, you can use the same hidden/visible actions array for custom actions as well
R19
R19OP5mo ago
I tired but it didn't work. any code references if you could share ?
shikharTS
shikharTS5mo ago
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[] }
R19
R19OP5mo ago
Okay, Thanks @shikharTS , I'll try this

Did you find this page helpful?