UNPKG

@openui5/sap.m

Version:

OpenUI5 UI Library sap.m

32 lines (24 loc) 735 B
/*! * OpenUI5 * (c) Copyright 2026 SAP SE or an SAP affiliate company. * Licensed under the Apache License, Version 2.0 - see LICENSE.txt. */ sap.ui.define(["sap/ui/core/Lib"], function (Library) { "use strict"; var MessageViewRenderer = { apiVersion: 2 }; var CSS_CLASS = "sapMMsgView"; MessageViewRenderer.render = function (oRm, oControl) { var oResourceBundle = Library.getResourceBundleFor("sap.m"); oRm.openStart("section", oControl); oRm.class(CSS_CLASS); oRm.accessibilityState(oControl, { label: oResourceBundle.getText("MESSAGE_VIEW_ARIA_LABEL") }); oRm.openEnd(); oRm.renderControl(oControl._navContainer); oRm.close("section"); }; return MessageViewRenderer; }, /* bExport= */ true);