Forum Discussion

Chivleng Tony Lim's avatar
Chivleng Tony Lim
Copper Contributor
Mar 08, 2018

How to Render Global Nav and Breadcrumb in the same SharePoint Extension

How do I render the global menu and breadcrumps in the same sharepoint extension?  I need the const element to contain both the Global Nav Bar and BreadCrumb below.

 

Any advice is appreciated.

 

        const element: React.ReactElement<ITenantGlobalNavBarProps> = React.createElement(
          TenantGlobalNavBar,
          {
            menuItems: this._topMenuItems,
          }
        );

        ReactDom.render(element, this._topPlaceholder.domElement);
        const element: React.ReactElement<ISiteBreadcrumbProps> = React.createElement(
          SiteBreadcrumb,
          {
            context: this.context
          }
        );
        ReactDom.render(element, this._headerPlaceholder.domElement);

 do  

No RepliesBe the first to reply

Resources