Function buildNavTree

  • Builds a full nav tree from the given HTML element, or nothing if there are no nav elements within the given element.

    Parameters

    • rootElement: HTMLElement

    Returns NavRootNode | undefined