Sha256: 3cb9f56dc8731580dc85a09c25cb00cf82555fea6e87d8b50ee096a674499919
Contents?: true
Size: 1.62 KB
Versions: 4
Compression:
Stored size: 1.62 KB
Contents
/*! * UI development toolkit for HTML5 (OpenUI5) * (c) Copyright 2009-2018 SAP SE or an SAP affiliate company. * Licensed under the Apache License, Version 2.0 - see LICENSE.txt. */ // Provides default renderer for control sap.ui.commons.HorizontalDivider sap.ui.define(['jquery.sap.global'], function(jQuery) { "use strict"; /** * HorizontalDivider renderer. * @namespace */ var HorizontalDividerRenderer = { }; /** * Renders the HTML for the given control, using the provided {@link sap.ui.fw.RenderManager}. * * @param {sap.ui.fw.RenderManager} oRenderManager The RenderManager that can be used for writing to the Render-Output-Buffer * @param {sap.ui.fw.Control} oControl An object representation of the control that should be rendered */ HorizontalDividerRenderer.render = function(oRenderManager, oControl){ var rm = oRenderManager; rm.write("<hr"); rm.writeControlData(oControl); rm.writeAttribute("role", "separator"); //ARIA if (oControl.getWidth()) { rm.writeAttribute("style", "width:" + oControl.getWidth() + ";"); } rm.addClass("sapUiCommonsHoriDiv"); rm.addClass(oControl.getType() == "Page" ? "sapUiCommonsHoriDivTypePage" : "sapUiCommonsHoriDivTypeArea"); switch (oControl.getHeight()) { case "Ruleheight": rm.addClass("sapUiCommonsHoriDivHeightR"); break; case "Small": rm.addClass("sapUiCommonsHoriDivHeightS"); break; case "Large": rm.addClass("sapUiCommonsHoriDivHeightL"); break; default: rm.addClass("sapUiCommonsHoriDivHeightM"); } rm.writeClasses(); rm.write("/>"); }; return HorizontalDividerRenderer; }, /* bExport= */ true);
Version data entries
4 entries across 4 versions & 2 rubygems