MCPcopy Index your code
hub / github.com/apache/echarts / updateList

Function updateList

test/lib/caseFrame.js:298–339  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

296 }
297
298 function updateList() {
299 var html = [];
300
301 var filter;
302 var listFilterName = getState('listFilterName');
303 if (listFilters && listFilterName) {
304 for (var i = 0; i < listFilters.length; i++) {
305 if (listFilters[i].name === listFilterName) {
306 filter = listFilters[i];
307 break;
308 }
309 }
310 }
311
312 for (var i = 0; i < pagePaths.length; i++) {
313 var path = pagePaths[i];
314
315 var whiteList = filter && filter.whiteList;
316 if (whiteList) {
317 var j = 0;
318 for (; j < whiteList.length; j++) {
319 if (path === whiteList[j]) {
320 break;
321 }
322 }
323 if (j >= whiteList.length) {
324 continue;
325 }
326 }
327
328 html.push('<li><a href="' + baseURL + '/' + encodeHTML(path) + '">' + encodeHTML(path) + '</a></li>');
329 }
330
331 var caseListContainer = $(SELECTOR_CASES_LIST_CONTAINER);
332
333 caseListContainer[0].innerHTML = html.join('');
334
335 caseListContainer.off('click').on('click', SELECTOR_CASES_ITEM, function (e) {
336 setState('pagePath', e.currentTarget.innerHTML);
337 return false;
338 });
339 }
340
341 function updatePage() {
342 var pageURL = getCurrentPageURL();

Callers 1

updateViewFunction · 0.85

Calls 3

getStateFunction · 0.85
encodeHTMLFunction · 0.85
setStateFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…