Method of the RendererExtensions API that adds a title in the shell header.
setHeaderTitle(sTitle)
This method is part of the SAPUI5 sap.ushell.renderers.fiori2.rendererextensions namespace. For more information, see SAPUI5 Demo Kit: Controls .
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 oRendererExtensions = jQuery.sap.getObject("sap.ushell.renderers.fiori2.RendererExtensions"); oRendererExtensions.setHeaderTitle(“Some Title”); <SCRIPT>