MCPcopy Create free account
hub / github.com/SuperMap/iClient-JavaScript / createSubGalleryItem

Function createSubGalleryItem

examples/js/example.js:68–85  ·  view source on GitHub ↗
(config, name)

Source from the content-addressed store, hash-verified

66
67
68function createSubGalleryItem(config, name) {
69 var categoryContentDiv = $("<div class='category-content'></div>");
70 for (var key in config) {
71 var configItem = config[key];
72 if (window.isLocal && configItem.localIgnore) {
73 continue;
74 }
75 var content = $("<div class='box box-default color-palette-box' id='" + name + '-' + key + "'></div>");
76 var title = utils.getLocalPairs(configItem, "name");
77 createSubGalleryItemTitle(key, title).appendTo(content);
78 if (configItem.content) {
79 createGalleryCharts(configItem.content).appendTo(content);
80
81 }
82 content.appendTo(categoryContentDiv);
83 }
84 return categoryContentDiv;
85}
86
87function createGalleryItemTitle(id, title) {
88 var menuItemIcon = sideBarIconConfig[id];

Callers 1

createGalleryItemFunction · 0.85

Calls 4

createGalleryChartsFunction · 0.85
appendToMethod · 0.80
$Function · 0.50

Tested by

no test coverage detected