MCPcopy Create free account
hub / github.com/apache/storm / showComponents

Function showComponents

storm-webapp/src/main/webapp/js/script.js:532–546  ·  view source on GitHub ↗
(row, open)

Source from the content-addressed store, hash-verified

530}
531
532function showComponents(row, open) {
533 if (!row || !row.node()) return;
534 var tr = $(row.node());
535 if (!open) {
536 // This row is already open - close it
537 if (row.child.isShown()) {
538 row.child.hide();
539 }
540 tr.removeClass('shown');
541 } else {
542 // Open this row
543 row.child(format(row.data())).show();
544 tr.addClass('shown');
545 }
546}
547
548function toggleComponents(elId) {
549 var show = $.cookies.get('showComponents') || false;

Callers 3

initializeComponentsFunction · 0.85
makeWorkerStatsTableFunction · 0.85
toggleComponentsFunction · 0.85

Calls 2

formatFunction · 0.85
dataMethod · 0.80

Tested by

no test coverage detected