Set the position of a custom action

Set the position of a custom action

ThoughtSpot lets you add custom actions globally to all your visualizations. When creating a custom action, developers can set the action as Global or Local. By default, the global custom actions are placed in the More menu the more options menu. The local custom actions are not placed anywhere in the UI until they are assigned to a Worksheet, Liveboard visualization, or saved Answer.

You can place a custom action as a primary button, in the More the more options menu menu, or the context menu that appears when a user right-clicks on an Answer or Liveboard visualization. For example, if you want to send only a single row of data instead of the entire data set obtained from a visualization, you can place the custom action in the contextual menu.

You can change the default position of a custom action in the Custom actions panel.

  1. Navigate to a Liveboard visualization or a saved Answer, or create a chart or table from a new search and click Save.

  2. Click the Custom actions icon the Custom actions menu.

    A list of custom actions available for your instance is displayed.

  3. Click the action you want to modify and then click the edit icon.

  4. Select one of the following options:

    • Primary

      Sets the custom action as a primary menu action.

      Note

      ThoughtSpot allows only one primary action on a visualization page. If you already have a primary action, you can select another option or override your current primary action setting.

    • Menu

      Adds the custom action to the More menu the more options menu. By default, the Global custom actions are placed as menu actions in the More menu the more options menu.

    • Context menu

      Adds the custom action to the contextual menu that appears when a user right-clicks on a visualization. This option is available for only URL and callback custom actions.

  5. Preview the position of the custom action.

    Custom action for a visualization

  6. Click Save.