function sap/ui/core/syncStyleClass

Visiblity: public
Available since: N/A
Module: sap/ui/core/syncStyleClass
Application Component:

Search ancestors of the given source DOM element for the specified CSS class name.

If the class name is found, set it to the root DOM element of the target control. If the class name is not found, it is also removed from the target DOM element.


Parameters Overview

Param Type Default Value Description
sStyleClass string CSS class name
vSource jQuery|sap.ui.core.Control|string jQuery object, control or an id of the source element.
vDestination jQuery|sap.ui.core.Control target jQuery object or a control.

Methods Overview

Method Description