Skip to content

Latest commit

 

History

History
12 lines (8 loc) · 439 Bytes

programmatic-access-to-rtl-8bb4723.md

File metadata and controls

12 lines (8 loc) · 439 Bytes

Programmatic Access to RTL

Some controls need to provide specific coding for right-to-left mode (RTL), for example, because they position or animate elements programmatically, and not via CSS. To read the SAPUI5 RTL configuration, use the following function call:

sap.ui.require(["sap/base/i18n/Localization"], (Localization) => {
    const bRtl = Localization.getRTL();
});