MCPcopy Index your code
hub / github.com/SuperMap/iClient-JavaScript / createSideBarMenuThirdTitle

Function createSideBarMenuThirdTitle

examples/js/sidebar.js:224–244  ·  view source on GitHub ↗
(id, title, collapse,version)

Source from the content-addressed store, hash-verified

222}
223
224function createSideBarMenuThirdTitle(id, title, collapse,version) {
225 id = id || "";
226 var icon = "",
227 iconName = sideBarIconConfig[id];
228 if (iconName) {
229 icon = "<i class='fa iconfont" + iconName + "'></i>"
230 }
231 var newIcon="";
232 if(window.version===version){
233 newIcon = "<svg style='width:16px;height:16px;padding-left:5px'><circle cx='3' cy='3' r='3' fill='var(--active-color)'></circle>/svg>";
234 }
235
236 var div = $(
237 "<a href='#" + id + "' id='" + id + "'>" + icon +
238 "<span class='thirdMenuTitle'>" + title + "</span>" +newIcon+
239 "</a>");
240 if (collapse) {
241 div.append(createCollapsedIcon());
242 }
243 return div;
244}
245
246//创建右侧折叠菜单
247function createCollapsedIcon() {

Callers 1

createSideBarThirdMenuFunction · 0.85

Calls 2

createCollapsedIconFunction · 0.85
$Function · 0.50

Tested by

no test coverage detected