Methods of the Renderer API that determine when the shell header is displayed and when it is hidden.
setHeaderVisibility(bVisible, bCurrentState, aStates)
These methods are part of the SAPUI5 sap.ushell.renderers.fiori2 namespace. For more information, see SAPUI5 Demo Kit: Controls .
Parameter | Type | Description |
---|---|---|
bVisible | Boolean | The visibility of the shell header. |
bCurrentState | Boolean |
If true, the visibility is set according to the current rendered shell state. When the user navigates away from the current app (or home page), the visibility is reset. If false, visibility is determined according to the values of the aState parameter. |
aStates |
String |
Valid only if bCurrentState is set to false A list of the launchpad states in which the header visibility flag is set. |
<pre> var oRenderer = sap.ushell.Container.getRenderer("fiori2"); oRenderer.setHeaderVisibility(false, false, ["home", "app"]); </pre>