Use the method of the Renderer API to add a title in the shell header.
setHeaderTitle(sTitle)
This method is part of the SAPUI5 sap.ushell.renderers.fiori2 namespace. For more information, go to SAPUI5 Demo Kit: Controls and then navigate to .
The search control and the title occupy the same space in the shell header. Opening the search hides the title.
Parameter |
Type |
Description |
---|---|---|
Title |
String |
The text of the title to display in the shell header. |
<SCRIPT language ="JavaScript"> var oRenderer = jQuery.sap.getObject("sap.ushell.renderers.fiori2.Renderer"); oRenderer.setHeaderTitle(“Some Title”); <SCRIPT>