How to use the @uifabric/example-app-base/lib/index2.jumpToAnchor 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 / Site / Site.tsx View on Github external
this._jumpInterval = this._async.setInterval(() => {
        const el = document.getElementById(anchor);
        if (el || Date.now() - start > 1000) {
          this._async.clearInterval(this._jumpInterval);
          this._jumpInterval = undefined;
          if (el) {
            jumpToAnchor(anchor);
          }
        }
      }, 100);
    }