namespace sap/ui/core/InvisibleRenderer

Visiblity: protected
Available since: N/A
Module: sap/ui/core/InvisibleRenderer
Application Component:

Provides the default renderer for the controls that have set their visible property to false.


Nodes Overview

Node Description

Methods Overview

Method Description
module:sap/ui/core/InvisibleRenderer.createInvisiblePlaceholderId

Creates the ID to be used for the invisible placeholder DOM element.

module:sap/ui/core/InvisibleRenderer.getDomRef

Returns the placeholder DOM element of the provided control.

module:sap/ui/core/InvisibleRenderer.render

Renders an invisible placeholder to identify the location of the invisible control within the DOM tree.

The standard implementation renders an invisible <span> element for controls with visible:false to improve re-rendering performance. Due to the fault tolerance of the HTML5 standard, such <span> elements are accepted in many scenarios and won't appear in the render tree of the browser. However, in some cases, controls might need to write a different element if <span> is not an allowed element (for example, within the <tr> or <li> group). In this case, the caller can require this module and use the third parameter to define the HTML tag.

module:sap/ui/core/InvisibleRenderer.createInvisiblePlaceholderId

Creates the ID to be used for the invisible placeholder DOM element.

Param Type DefaultValue Description
oControl sap.ui.core.Control

The control instance for which to create the placeholder ID

module:sap/ui/core/InvisibleRenderer.getDomRef

Returns the placeholder DOM element of the provided control.

Param Type DefaultValue Description
oControl sap.ui.core.Control

The control instance for which to get the placeholder DOM element

module:sap/ui/core/InvisibleRenderer.render

Renders an invisible placeholder to identify the location of the invisible control within the DOM tree.

The standard implementation renders an invisible <span> element for controls with visible:false to improve re-rendering performance. Due to the fault tolerance of the HTML5 standard, such <span> elements are accepted in many scenarios and won't appear in the render tree of the browser. However, in some cases, controls might need to write a different element if <span> is not an allowed element (for example, within the <tr> or <li> group). In this case, the caller can require this module and use the third parameter to define the HTML tag.

Param Type DefaultValue Description
oRm sap.ui.core.RenderManager

The RenderManager instance

oElement sap.ui.core.Element

The instance of the invisible element

sTagName string "span"

HTML tag of the invisible placeholder; void tags are not allowed.