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

Function createSideBarMenuSecondTitle

examples/js/sidebar.js:202–222  ·  view source on GitHub ↗
(id, title, collapse, hasNewExamples)

Source from the content-addressed store, hash-verified

200
201
202function createSideBarMenuSecondTitle(id, title, collapse, hasNewExamples) {
203 id = id || "";
204 var icon = "",
205 iconName = sideBarIconConfig[id];
206 if (iconName) {
207 icon = "<i class='fa iconfont" + iconName + "'></i>"
208 }
209 var newIcon = "";
210 if (hasNewExamples) {
211 newIcon = "<svg style='width:16px;height:16px;padding-left:5px'><circle cx='3' cy='3' r='3' fill='var(--active-color)'></circle>/svg>";
212 }
213 var div = $(
214 "<a href='#" + id + "' id='" + id + '-' + id + "'>" + icon +
215 "<span class='secondMenuTitle'>" + title + "</span>" + newIcon +
216 "</a>");
217
218 if (collapse) {
219 div.append(createCollapsedIcon());
220 }
221 return div;
222}
223
224function createSideBarMenuThirdTitle(id, title, collapse,version) {
225 id = id || "";

Callers 1

createSideBarSecondMenuFunction · 0.85

Calls 2

createCollapsedIconFunction · 0.85
$Function · 0.50

Tested by

no test coverage detected