UNPKG

@openui5/sap.m

Version:

OpenUI5 UI Library sap.m

40 lines (33 loc) 976 B
/*! * OpenUI5 * (c) Copyright 2009-2023 SAP SE or an SAP affiliate company. * Licensed under the Apache License, Version 2.0 - see LICENSE.txt. */ sap.ui.define([], function() { "use strict"; /** * DynamicDateRange renderer. * @namespace */ var DynamicDateRangeRenderer = { apiVersion: 2 }; /** * 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.m.DynamicDateRange} oControl an object representation of the control that should be rendered */ DynamicDateRangeRenderer.render = function(oRm, oControl) { oRm.openStart("div", oControl); oRm.class("sapMDynamicDateRange"); if (oControl.getHideInput()) { oRm.class("sapMDDRHiddenInput"); } oRm.openEnd(); oRm.renderControl(oControl._oInput); oRm.close("div"); }; return DynamicDateRangeRenderer; });