Use the method of the LaunchPage API to register a callback function for external tile action providers, and add actions to all tiles in the launchpad when the user clicks a tile in action mode.
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, go to SAPUI5 Demo Kit: Controls and then navigate to .
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. |
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 } } ]; } ); Returns the tile actions immediately without any additional server access. This eliminates delays in rendering the action list in the browser.