INNER CODE UNIT · JavaScript

showNodeChildren

SamuelTallet/MongoDB-PHP-GUI · source/js/jsonViewModified.js:53

  function showNodeChildren(node) {
    node.children.forEach(function (child) {
      child.el.classList.remove('hide');

      if (child.isExpanded) {
        showNodeChildren(child);
      }
    });
  }

  function setCaretIconDown(node) {
    if (node.children.length > 0) {
      var icon = node.el.querySelector('.fas');

      if (icon) {
        icon.classList.replace('fa-caret-right', 'fa-caret-down');
      }
    }

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…