All Downloads are FREE. Search and download functionalities are using the official Maven repository.

package.dist.locale.applyDirection.js Maven / Gradle / Ivy

import { reRenderAllUI5Elements } from "../Render.js";
import { fireDirectionChange } from "./directionChange.js";
/**
 * Re-renders all RTL-aware UI5 Elements.
 *
 * **Note:** Call this method whenever you change the "dir" property anywhere in your HTML page.
 *
 * **Example:** `document.body.dir = "rtl"; applyDirection();`
 * @public
 * @returns {Promise}
 */
const applyDirection = async () => {
    const listenersResults = fireDirectionChange();
    await Promise.all(listenersResults);
    await reRenderAllUI5Elements({ rtlAware: true });
};
export default applyDirection;
//# sourceMappingURL=applyDirection.js.map




© 2015 - 2024 Weber Informatics LLC | Privacy Policy