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.
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 .
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. |
Returns the tile actions immediately without any additional server access. This eliminates delays in rendering the action list in the browser.
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 } } ]; } );