Sha256: a713af0e6c59dbe101bdb6e638f5f7f49c58f35d09ab650d66bbef79892c01bd
Contents?: true
Size: 1.18 KB
Versions: 4
Compression:
Stored size: 1.18 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(['jquery.sap.global'],function(q){"use strict";var I={};I.render=function(r,i){var a=r;a.write("<img");a.writeControlData(i);a.writeAttributeEscaped("src",i.getSrc()||sap.ui.resource('sap.ui.commons','img/1x1.gif'));a.addClass("sapUiImg");if(i.hasListeners("press")){a.addClass("sapUiImgWithHandler");}if(!i.getSrc()){a.addClass("sapUiImgNoSource");}a.writeClasses();var t=i.getTooltip_AsString();if(t){a.writeAttributeEscaped("title",t);}var u=i.getUseMap();if(u){if(!(q.sap.startsWith(u,"#"))){u="#"+u;}a.writeAttributeEscaped("useMap",u);}var m=0;if((i.getDecorative()&&(!u))){m=-1;a.writeAttribute("role","presentation");a.write(" alt=''");}else{if(i.getAlt()){a.writeAttributeEscaped("alt",i.getAlt()||t);}else if(t){a.writeAttributeEscaped("alt",t);}}a.writeAttribute("tabIndex",m);var b="";if(i.getWidth()&&i.getWidth()!=''){b+="width:"+i.getWidth()+";";}if(i.getHeight()&&i.getHeight()!=''){b+="height:"+i.getHeight()+";";}if(b!=""){a.writeAttribute("style",b);}a.write("/>");};return I;},true);
Version data entries
4 entries across 4 versions & 2 rubygems