src/sap.ui.documentation/src/sap/ui/documentation/sdk/controller/ControlsMaster.controller.js
function(sThemeActive, sDensityMode, bRTL){
				var oSampleFrameContent,
					oSampleFrameCore,
					$SampleFrame,
					bRTLChanged,
					bThemeChanged,
					bContentDensityChanged;

				// Handle content density change
				if (this._oViewSettings.densityMode !== sDensityMode) {
					this._toggleContentDensityClasses(jQueryDOM(document.body), sDensityMode);
					this._oViewSettings.densityMode = sDensityMode;
					bContentDensityChanged = true;
				}

				// Handle RTL mode change
				if (this._oViewSettings.rtl !== bRTL) {
					this._oCore.getConfiguration().setRTL(bRTL);

					this._oViewSettings.rtl = bRTL;
					bRTLChanged = true;
				}

				// Handle theme change
				if (this._oViewSettings.themeActive !== sThemeActive) {
					this._oCore.applyTheme(sThemeActive);

					this._oViewSettings.themeActive = sThemeActive;
					bThemeChanged = true;
				} else if (bContentDensityChanged) {
					// NOTE: We notify for content density change only if no theme change is applied because both
					// methods fire the same event which may lead to unpredictable result.
					this._oCore.notifyContentDensityChanged();
				}

				// Apply theme and compact mode also to iframe samples if there is actually a change
				if (bRTLChanged || bContentDensityChanged || bThemeChanged) {

					$SampleFrame = jQueryDOM("#sampleFrame");
					if ($SampleFrame.length > 0) {
						oSampleFrameContent = $SampleFrame[0].contentWindow;
						if (oSampleFrameContent) {
							oSampleFrameCore = oSampleFrameContent.sap.ui.getCore();

							if (bContentDensityChanged) {
								this._toggleContentDensityClasses(oSampleFrameContent.jQuery('body'), sDensityMode);
							}

							if (bRTLChanged) {
								oSampleFrameCore.getConfiguration().setRTL(bRTL);
							}

							if (bThemeChanged) {
								oSampleFrameCore.applyTheme(sThemeActive);
							} else if (bContentDensityChanged) {
								// Notify Core for content density change only if no theme change happened
								oSampleFrameCore.notifyContentDensityChanged();
							}

						}
					}

				}

			}
function(sThemeActive, sDensityMode, bRTL){
				var oSampleFrameContent,
					oSampleFrameCore,
					$SampleFrame,
					bRTLChanged,
					bThemeChanged,
					bContentDensityChanged;

				// Handle content density change
				if (this._oViewSettings.densityMode !== sDensityMode) {
					this._toggleContentDensityClasses(jQueryDOM(document.body), sDensityMode);
					this._oViewSettings.densityMode = sDensityMode;
					bContentDensityChanged = true;
				}

				// Handle RTL mode change
				if (this._oViewSettings.rtl !== bRTL) {
					this._oCore.getConfiguration().setRTL(bRTL);

					this._oViewSettings.rtl = bRTL;
					bRTLChanged = true;
				}

				// Handle theme change
				if (this._oViewSettings.themeActive !== sThemeActive) {
					this._oCore.applyTheme(sThemeActive);

					this._oViewSettings.themeActive = sThemeActive;
					bThemeChanged = true;
				} else if (bContentDensityChanged) {
					// NOTE: We notify for content density change only if no theme change is applied because both
					// methods fire the same event which may lead to unpredictable result.
					this._oCore.notifyContentDensityChanged();
				}

				// Apply theme and compact mode also to iframe samples if there is actually a change
				if (bRTLChanged || bContentDensityChanged || bThemeChanged) {

					$SampleFrame = jQueryDOM("#sampleFrame");
					if ($SampleFrame.length > 0) {
						oSampleFrameContent = $SampleFrame[0].contentWindow;
						if (oSampleFrameContent) {
							oSampleFrameCore = oSampleFrameContent.sap.ui.getCore();

							if (bContentDensityChanged) {
								this._toggleContentDensityClasses(oSampleFrameContent.jQuery('body'), sDensityMode);
							}

							if (bRTLChanged) {
								oSampleFrameCore.getConfiguration().setRTL(bRTL);
							}

							if (bThemeChanged) {
								oSampleFrameCore.applyTheme(sThemeActive);
							} else if (bContentDensityChanged) {
								// Notify Core for content density change only if no theme change happened
								oSampleFrameCore.notifyContentDensityChanged();
							}

						}
					}

				}

			}
function ( sThemeActive , sDensityMode , bRTL ) { var oSampleFrameContent , oSampleFrameCore , $SampleFrame , bRTLChanged , bThemeChanged , bContentDensityChanged ; // Handle content density change if ( this . _oViewSettings . densityMode !== sDensityMode ) { this . _toggleContentDensityClasses ( jQueryDOM ( document . body ) , sDensityMode ) ; this . _oViewSettings . densityMode = sDensityMode ; bContentDensityChanged = true ; } // Handle RTL mode change if ( this . _oViewSettings . rtl !== bRTL ) { this . _oCore . getConfiguration ( ) . setRTL ( bRTL ) ; this . _oViewSettings . rtl = bRTL ; bRTLChanged = true ; } // Handle theme change if ( this . _oViewSettings . themeActive !== sThemeActive ) { this . _oCore . applyTheme ( sThemeActive ) ; this . _oViewSettings . themeActive = sThemeActive ; bThemeChanged = true ; } else if ( bContentDensityChanged ) { // NOTE: We notify for content density change only if no theme change is applied because both // methods fire the same event which may lead to unpredictable result. this . _oCore . notifyContentDensityChanged ( ) ; } // Apply theme and compact mode also to iframe samples if there is actually a change if ( bRTLChanged || bContentDensityChanged || bThemeChanged ) { $SampleFrame = jQueryDOM ( "#sampleFrame" ) ; if ( $SampleFrame . length > 0 ) { oSampleFrameContent = $SampleFrame [ 0 ] . contentWindow ; if ( oSampleFrameContent ) { oSampleFrameCore = oSampleFrameContent . sap . ui . getCore ( ) ; if ( bContentDensityChanged ) { this . _toggleContentDensityClasses ( oSampleFrameContent . jQuery ( 'body' ) , sDensityMode ) ; } if ( bRTLChanged ) { oSampleFrameCore . getConfiguration ( ) . setRTL ( bRTL ) ; } if ( bThemeChanged ) { oSampleFrameCore . applyTheme ( sThemeActive ) ; } else if ( bContentDensityChanged ) { // Notify Core for content density change only if no theme change happened oSampleFrameCore . notifyContentDensityChanged ( ) ; } } } } }
Apply content configuration
@param {string} sThemeActive name of the theme
@param {string} sDensityMode content density mode
@param {boolean} bRTL right to left mode
@private
Apply content configuration