Sha256: e33cb8f0070f9125cd55f233d79a44b7df419121e8cff59abff916e29da36d58
Contents?: true
Size: 2 KB
Versions: 3
Compression:
Stored size: 2 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. */ sap.ui.define([], function() { "use strict"; var FeedInputRenderer = { }; /** * Renders the HTML for the given control, using the provided {@link sap.ui.core.RenderManager}. * * @param {sap.ui.core.RenderManager} oRm 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 */ FeedInputRenderer.render = function (oRm, oControl) { var sMyId = oControl.getId(); oRm.write("<div"); oRm.writeControlData(oControl); oRm.addClass("sapMFeedInBase"); oRm.writeClasses(); oRm.write(">"); oRm.write('<div id="' + sMyId + '-outerContainer"'); oRm.addClass("sapMFeedIn"); if (!oControl.getShowIcon()) { oRm.addClass("sapMFeedInNoIcon"); } if (!oControl.getEnabled()) { oRm.addClass("sapMFeedInDisabled"); } oRm.writeClasses(); oRm.write(">"); if (!!oControl.getShowIcon()) { this._addImage(oRm, oControl, sMyId); } oRm.write('<div id="' + sMyId + '-container"'); oRm.addClass("sapMFeedInContainer"); oRm.writeClasses(); oRm.write(">"); var oTextArea = oControl._getTextArea(); oRm.renderControl(oTextArea); oRm.renderControl(oControl._getPostButton()); oRm.write("</div>"); oRm.write("</div>"); oRm.write('<div id="' + sMyId + '-counterContainer"'); oRm.addClass("sapMFeedInCounter"); oRm.writeClasses(); oRm.write(">"); oRm.write("</div>"); oRm.write("</div>"); }; FeedInputRenderer._addImage = function (oRm, oControl, sMyId) { oRm.write('<figure id="' + sMyId + '-figure" class ="sapMFeedInFigure'); if (!!oControl.getIcon()) { oRm.write('">'); } else { oRm.write(' sapMFeedListItemIsDefaultIcon">'); } oRm.renderControl(oControl._getImageControl()); oRm.write('</figure>'); }; return FeedInputRenderer; }, /* bExport= */ true);
Version data entries
3 entries across 3 versions & 1 rubygems