/*! * 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/Device", "sap/ui/core/InvisibleText"], function(Device, InvisibleText) { "use strict"; /** * SearchField renderer. * @namespace */ var SearchFieldRenderer = { }; /** * Renders the HTML for the given control, using the provided {@link sap.ui.core.RenderManager}. * * @param {sap.ui.core.RenderManager} rm the RenderManager that can be used for writing to the Render-Output-Buffer * @param {sap.ui.core.Control} oSF an object representation of the control that should be rendered */ SearchFieldRenderer.render = function(rm, oSF){ // render nothing if control is invisible if (!oSF.getVisible()) { return; } var sPlaceholder = oSF.getPlaceholder(), sValue = oSF.getValue(), sWidth = oSF.getProperty("width"), sId = oSF.getId(), bShowRefreshButton = oSF.getShowRefreshButton(), bShowSearchBtn = oSF.getShowSearchButton(), oAccAttributes = {}, // additional accessibility attributes sToolTipValue, sRefreshToolTip = oSF.getRefreshButtonTooltip(), sResetToolTipValue, bAccessibility = sap.ui.getCore().getConfiguration().getAccessibility(); // container rm.write("