How to use the @uifabric/example-app-base/lib/index2.hasActiveChild function in @uifabric/example-app-base

To help you get started, we’ve selected a few @uifabric/example-app-base examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github OfficeDev / office-ui-fabric-react / apps / fabric-website / src / components / Nav / Nav.tsx View on Github external
linkText = (
          <>
            {before}
            {highlightMatch}
            {after}
          
        );
      }
    }

    return (
      <li>
        {!(page.isUhfLink &amp;&amp; location.hostname !== 'localhost') &amp;&amp; searchRegEx.test(page.title) &amp;&amp; (
          
            {linkText}
            {page.isExternal &amp;&amp; }
          
        )}</li>
github OfficeDev / office-ui-fabric-react / apps / fabric-website / src / components / Nav / Nav.tsx View on Github external
private _renderSection = (page: INavPage, sectionIndex: number) =&gt; {
    if (page.isCategory &amp;&amp; page.pages &amp;&amp; this._hasMatchChild(page)) {
      const key = `${page.title}-${sectionIndex}`;
      return (
        <li>
          
            {this._renderLinkList(page.pages, false)}
          
        </li>
      );
    }
  };
github OfficeDev / office-ui-fabric-react / apps / fabric-website / src / components / Nav / Nav.tsx View on Github external
private _renderSection = (page: INavPage, sectionIndex: number) =&gt; {
    if (page.isCategory &amp;&amp; page.pages &amp;&amp; this._hasMatchChild(page)) {
      const key = `${page.title}-${sectionIndex}`;
      return (
        <li>
          
            {this._renderLinkList(page.pages, false)}
          
        </li>
      );
    }
  };
github OfficeDev / office-ui-fabric-react / apps / fabric-website / src / components / Site / Site.tsx View on Github external
      .filter(page => !page.isHiddenFromMainNav && hasActiveChild(page, platform))
      .forEach(page => {