Show TOC

Adding a Title to the Shell HeaderLocate this document in the navigation structure

Use the method of the Renderer API to add a title in the shell header.

Syntax

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 Start of the navigation path API REFERENCE Next navigation step sap.ushell.renderers.fiori2 Next navigation step Renderer End of the navigation path.

Note

The search control and the title occupy the same space in the shell header. Opening the search hides the title.

Parameters

Parameter

Type

Description

Title

String

The text of the title to display in the shell header.

Example
Sample Code
<SCRIPT language ="JavaScript">

var oRenderer = jQuery.sap.getObject("sap.ushell.renderers.fiori2.Renderer");

oRenderer.setHeaderTitle(“Some Title”); 
   
<SCRIPT>