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

Function createGalleryItem

examples/js/example.js:48–65  ·  view source on GitHub ↗
(id, config)

Source from the content-addressed store, hash-verified

46
47//初始化示例面板
48function createGalleryItem(id, config) {
49 if (!config) {
50 return;
51 }
52 if (window.isLocal && config.localIgnore) {
53 return;
54 }
55 var categoryLi = $("<li class='category' id='" + id + "'></li>");
56 var title = utils.getLocalPairs(config, "name");
57 if (title) {
58 createGalleryItemTitle(id, title).appendTo(categoryLi);
59 }
60
61 if (config.content) {
62 createSubGalleryItem(config.content, id).appendTo(categoryLi);
63 }
64 return categoryLi;
65}
66
67
68function createSubGalleryItem(config, name) {

Callers 1

initPageFunction · 0.85

Calls 4

createGalleryItemTitleFunction · 0.85
createSubGalleryItemFunction · 0.85
appendToMethod · 0.80
$Function · 0.50

Tested by

no test coverage detected