Show TOC

Adding Tile Actions to All TilesLocate this document in the navigation structure

Method of the LaunchPage API that registers a callback function for an external tile actions provider, and adds an action to all tiles in the launchpad when the user clicks the tile in action mode.

Syntax

registerTileActionsProvider(function)

The function returns an array of tileActions objects.

This method is part of the SAPUI5 sap.ushell.services.launchpage namespace. For more information, see SAPUI5 Demo Kit: Controls Start of the navigation path API REFERENCE Next navigation step sap.ushell Next navigation step services Next navigation step launchpage End of the navigation path.

Properties of the tileActions Object

Properties

Type

Description

text

String

The text to display in the actions menu when the user clicks the tile.

icon

sap.ui.core.URI

The icon to display next to the text.

targetURL

String

Optional. You can enter any URL, for example http://help.sap.com.

Note that you have to provide a complete URL including the protocol (typically http:// or https://).
Note

If you choose to use semantic object navigation, the target URL will be automatically computed and inserted into this field.

press

Function

The action to perform when the user clicks the tile action.

Note

Returns the tile actions immediately without any additional server access. This eliminates delays in rendering the action list in the browser.

Example
Sample Code
this.oPageBuilderService.registerTileActionsProvider(function (oTile){
          return [
                 {
                      text: "Some Action",
                      icon: "sap-icon://action",
                      targetURL: "#SemanticObject-Action"
                  },
                  {
                      text: "Settings",
                      icon: "sap-icon://action-settings",
                      press: function (){
                          //Open settings UI
                      }
                  }
              ];
       }
);