/*! * 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. */ sap.ui.define(["sap/ui/core/library", "sap/ui/core/Renderer", "./ListItemBaseRenderer"], function(coreLibrary, Renderer, ListItemBaseRenderer) { "use strict"; // shortcut for sap.ui.core.TextDirection var TextDirection = coreLibrary.TextDirection; /** * DisplayListItem renderer. * @namespace */ var DisplayListItemRenderer = Renderer.extend(ListItemBaseRenderer); /** * Renders the HTML for the given control, using the provided * {@link sap.ui.core.RenderManager}. * * @param {sap.ui.core.RenderManager} * oRenderManager the RenderManager that can be used for writing to the * Render-Output-Buffer * @param {sap.ui.core.Control} * oControl an object representation of the control that should be * rendered */ DisplayListItemRenderer.renderLIAttributes = function(rm, oLI) { rm.addClass("sapMDLI"); }; DisplayListItemRenderer.renderLIContent = function(rm, oLI) { var isLabel = oLI.getLabel(); // List item label if (isLabel) { rm.write(""); } var isValue = oLI.getValue(); var sValueTextDir = oLI.getValueTextDirection(); // List item value if (isValue) { rm.write("