{"size": 2039, "ext": "js", "max_stars_repo_path": "tm2/resources/sap/m/IconTabHeaderRenderer.js", "max_stars_repo_name": "s-cbrunn/CodeBasics", "max_stars_repo_stars_event_min_datetime": "2016-10-21T13:08:30.000Z", "max_stars_repo_stars_event_max_datetime": "2018-06-24T05:39:34.000Z", "max_issues_repo_path": "iomyweb/ui/main/OpenUI5/sap/m/IconTabHeaderRenderer.js", "max_issues_repo_name": "CapsicumCorp/iOmy", "max_issues_repo_issues_event_min_datetime": "2021-01-28T20:30:30.000Z", "max_issues_repo_issues_event_max_datetime": "2021-10-12T22:35:02.000Z", "max_forks_repo_path": "iomyweb/ui/main/OpenUI5/sap/m/IconTabHeaderRenderer.js", "max_forks_repo_name": "CapsicumCorp/iOmy", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 4, "max_issues_count": 3, "max_forks_count": null, "avg_line_length": 291.2857142857, "max_line_length": 1852, "alphanum_fraction": 0.7302599313}
/*!
 * UI development toolkit for HTML5 (OpenUI5)
 * (c) Copyright 2009-2017 SAP SE or an SAP affiliate company.
 * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
 */
sap.ui.define(['jquery.sap.global','sap/ui/core/IconPool'],function(q,I){"use strict";var a={};a.render=function(r,c){if(!c.getVisible()){return;}var b=c.getItems(),d=b.length,v=c.getVisibleTabFilters(),V=v.length,e=0,t=c._checkTextOnly(b),n=c._checkNoText(b),f=c._checkInLine(b)||c.isInlineMode(),s=c.getShowOverflowSelectList(),o,g,h;var j=c.getParent();var u=j&&j instanceof sap.m.IconTabBar&&j.getUpperCase();r.write("<div role='tablist' ");r.addClass("sapMITH");r.addClass("sapContrastPlus");r.addClass("sapMITHBackgroundDesign"+c.getBackgroundDesign());if(s){r.addClass("sapMITHOverflowList");}if(c._scrollable){r.addClass("sapMITBScrollable");if(c._bPreviousScrollForward){r.addClass("sapMITBScrollForward");}else{r.addClass("sapMITBNoScrollForward");}if(c._bPreviousScrollBack){r.addClass("sapMITBScrollBack");}else{r.addClass("sapMITBNoScrollBack");}}else{r.addClass("sapMITBNotScrollable");}if(u){r.addClass("sapMITBTextUpperCase");}r.writeControlData(c);r.writeClasses();r.write(">");r.renderControl(c._getScrollingArrow("left"));r.write("<div id='"+c.getId()+"-scrollContainer' aria-hidden='true' class='sapMITBScrollContainer'>");r.write("<div id='"+c.getId()+"-head' aria-hidden='true' ");r.addClass("sapMITBHead");if(t){r.addClass("sapMITBTextOnly");}if(n){r.addClass("sapMITBNoText");}if(f){r.addClass("sapMITBInLine");}r.writeClasses();r.write(">");for(var i=0;i<d;i++){o=b[i];o.render(r,e,V);if(o instanceof sap.m.IconTabFilter){g=o.getDesign()===sap.m.IconTabFilterDesign.Horizontal;if(g){h=true;}if(o.getVisible()){e++;}}}r.write("</div>");r.write("</div>");r.renderControl(c._getScrollingArrow("right"));if(s){var O=c._getOverflowButton();if(f){O.addStyleClass('sapMBtnInline');}else if(t){O.addStyleClass('sapMBtnTextOnly');}else if(n||h){O.addStyleClass('sapMBtnNoText');}r.renderControl(O);}r.write("</div>");};return a;},true);
