{"id":7240,"date":"2024-11-08T13:34:38","date_gmt":"2024-11-08T13:34:38","guid":{"rendered":"https:\/\/softreetechnology.com\/blog\/?p=7240"},"modified":"2024-11-08T13:46:13","modified_gmt":"2024-11-08T13:46:13","slug":"creating-a-dynamic-navigation-bar-using-spfx-application-customizer","status":"publish","type":"post","link":"https:\/\/softreetechnology.com\/blog\/sharepoint\/creating-a-dynamic-navigation-bar-using-spfx-application-customizer\/","title":{"rendered":"Creating a Dynamic Navigation Bar using SPFx Application Customizer"},"content":{"rendered":"\n<p>Building a Dynamic Navigation Bar using SPFx Application Customizer consists of several tasks starting from how to set your development environment and building the navigation component itself, deploying it to a SharePoint Online site, and configuring the dynamic navigation links. In this scenario, a detailed explanation on how to implement such a project using SPFx(Sharepoint Framework) and the Application Customizer extension is provided.<\/p>\n\n\n\n<p><strong>Technology Used:<\/strong><\/p>\n\n\n\n<p>SharePoint Framework (SPFx)<\/p>\n\n\n\n<p>React<\/p>\n\n\n\n<p>PnPjs<\/p>\n\n\n\n<p>Fluent UI<\/p>\n\n\n\n<p><strong>Table of Content:<\/strong><\/p>\n\n\n\n<p>Project Setup<\/p>\n\n\n\n<p>Creating the Application Customizer<\/p>\n\n\n\n<p>Building the Dynamic Navigation Bar<\/p>\n\n\n\n<p>Renders the Navigation Bar<\/p>\n\n\n\n<p>Deploying to SharePoint Online<\/p>\n\n\n\n<p>Configuring Dynamic Navigation<\/p>\n\n\n\n<p><strong>Application Customizer(.ts) file<\/strong><\/p>\n\n\n\n<p><img loading=\"lazy\" decoding=\"async\" width=\"602\" height=\"320\" src=\"https:\/\/lh7-rt.googleusercontent.com\/docsz\/AD_4nXdkoyVI9iqXzqadwmhjzzm3ipiZWKuXrKAVq-nRa3_OQJn-MSLXvvYz0Y9EiybH4dv7r8nZkQbH-jj_sDa04wEMkYBvwR4MHZahqa2ZtYI1qMxduGibO9jb1p1uoX5VyqYMnbsCG2UQyDRWuaG92EqIWt8V_iA0N7r4CfoLmgbmVjijsO70Jrw?key=CIOfoyh7C4TVyi19OHFW2g\"><\/p>\n\n\n\n<p><img loading=\"lazy\" decoding=\"async\" width=\"602\" height=\"320\" src=\"https:\/\/lh7-rt.googleusercontent.com\/docsz\/AD_4nXdpf7QlJ-1wiUuLUyE24pnLVIDEHEFgiZsKhCuoqaBx-3MUYX29fCosK9wZamzCt6Q4aXG-vlXxG3lgg4FhPxWHcc_fYB10KanM_YcFYbmWlXL0tRhtDJV6S_60aETgqFRqOcrfQ4L5PeLlFo-2TWsfuQRVQVPTW_PCWN95XpHmXwL0r3QVmDQ?key=CIOfoyh7C4TVyi19OHFW2g\"><\/p>\n\n\n\n<p><strong>manifest.json file<\/strong><\/p>\n\n\n\n<p><img loading=\"lazy\" decoding=\"async\" width=\"602\" height=\"320\" src=\"https:\/\/lh7-rt.googleusercontent.com\/docsz\/AD_4nXciLehZaPMChgnDpnHDMSZy9Z6RDO7JFIbZ9QUJ81Orle9NdsTVk6GjLfWfXES3FsOETYD5rhirhipuYmWJXdcOK_iRAFocO6WigyzXsxxGhLE4li7B5YQOqjFLaQA1ZAQRPl4Vl6WC8NmjWL59eU3bVSaGN6JXEnu-W0GnIg2GGC3M_jq-OoI?key=CIOfoyh7C4TVyi19OHFW2g\"><\/p>\n\n\n\n<p><strong>.module.scss file<\/strong><\/p>\n\n\n\n<p><img loading=\"lazy\" decoding=\"async\" width=\"602\" height=\"320\" src=\"https:\/\/lh7-rt.googleusercontent.com\/docsz\/AD_4nXfuoHMcYttdS7iYQd4I558bktKXCrVqUPic8CCeoboMggTjsJJJvNrXFqcnlGPAHD3ex6q-wqb_HhBoU6DTP9bIHAKz9qaiwgR1O-qDC96h-K8IH-_gdmeA34M99XClQw86QCyX3b5K47F2N14NnIQvKl5F5Q6e45S6J4MDPd1QTJic6Qm-nA?key=CIOfoyh7C4TVyi19OHFW2g\"><\/p>\n\n\n\n<p><strong>.tsx file<\/strong><\/p>\n\n\n\n<p><img loading=\"lazy\" decoding=\"async\" width=\"602\" height=\"320\" src=\"https:\/\/lh7-rt.googleusercontent.com\/docsz\/AD_4nXcnYyCJGq9LNgqAGnLT0y7Mcw6PsAWiJY24SivT8zRb6ToWZJGfex0afxiiYWiLf8u7Ckq-AQEuRd5oGCQ92hstLnUtD-GmNVIyfrDt6vaFH1Yrk8J5e_Rhi_nkMYB0rUYqNoUqAWh4uVs0KuyYDQalKUvt2R7-VMGNTdZOlmtJISn7gzAsrhE?key=CIOfoyh7C4TVyi19OHFW2g\"><\/p>\n\n\n\n<p><strong>Output Screenshots<\/strong><\/p>\n\n\n\n<p><img loading=\"lazy\" decoding=\"async\" width=\"602\" height=\"279\" src=\"https:\/\/lh7-rt.googleusercontent.com\/docsz\/AD_4nXfrlxsWDSUJMRzshVClPnqXfvvDYIXT9aTplroEO-fmmHmTScdZQXToYszgZoqu698MOPIKC55KNgRSMMkuhlk1oRUVKzBDIJxewj2r_AaNqHs8ZbwvEmxGsfzYdFSL1dWgMMokxXXLua58YoFj8B1LjlHH4LNWSKcjZ9a7w6bDT8EyLvX84qo?key=CIOfoyh7C4TVyi19OHFW2g\"><\/p>\n\n\n\n<p><img loading=\"lazy\" decoding=\"async\" width=\"602\" height=\"292\" src=\"https:\/\/lh7-rt.googleusercontent.com\/docsz\/AD_4nXfq4vopOjBB3ZZcvXjJSHUyx10p4wp8PB_p8vqsYUjKK3JfNlVNQXrq3qcMWbVXgQ6JBvePTzHZwMk2IjbPMlaqB4oo_fnWh3wHgGZvwknKCLkVJQDwbsCPluKT32QRBUIkrzpkJUT2sumYDoGt564SWpkVYGt0g-L9W1vYvnUa3REnUz0pAII?key=CIOfoyh7C4TVyi19OHFW2g\"><\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Building a Dynamic Navigation Bar using SPFx Application Customizer consists of several tasks starting from how to set your development environment and building the navigation component itself, deploying it to a SharePoint Online site, and configuring the dynamic navigation links. In this scenario, a detailed explanation on how to implement such a project using SPFx(Sharepoint Framework) and the Application Customizer [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":7243,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[43],"tags":[399,398,400,396,56,159,395],"class_list":["post-7240","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-sharepoint","tag-building-the-dynamic-navigation-bar","tag-creating-the-application-customizer","tag-deploying-to-sharepoint-online","tag-react","tag-sharepoint","tag-sharepoint-online","tag-spfx"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.6 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Creating a Dynamic Navigation Bar using SPFx Application Customizer - Softree Technology<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/softreetechnology.com\/blog\/sharepoint\/creating-a-dynamic-navigation-bar-using-spfx-application-customizer\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Creating a Dynamic Navigation Bar using SPFx Application Customizer - Softree Technology\" \/>\n<meta property=\"og:description\" content=\"Building a Dynamic Navigation Bar using SPFx Application Customizer consists of several tasks starting from how to set your development environment and building the navigation component itself, deploying it to a SharePoint Online site, and configuring the dynamic navigation links. In this scenario, a detailed explanation on how to implement such a project using SPFx(Sharepoint Framework) and the Application Customizer [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/softreetechnology.com\/blog\/sharepoint\/creating-a-dynamic-navigation-bar-using-spfx-application-customizer\/\" \/>\n<meta property=\"og:site_name\" content=\"Softree Technology\" \/>\n<meta property=\"article:published_time\" content=\"2024-11-08T13:34:38+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-11-08T13:46:13+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/softreetechnology.com\/blog\/wp-content\/uploads\/2024\/11\/Creating-a-Dynamic-Navigation-Bar-using-SPFx-Application-Customizer-2.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1080\" \/>\n\t<meta property=\"og:image:height\" content=\"1080\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Creating a Dynamic Navigation Bar using SPFx Application Customizer - Softree Technology","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/softreetechnology.com\/blog\/sharepoint\/creating-a-dynamic-navigation-bar-using-spfx-application-customizer\/","og_locale":"en_US","og_type":"article","og_title":"Creating a Dynamic Navigation Bar using SPFx Application Customizer - Softree Technology","og_description":"Building a Dynamic Navigation Bar using SPFx Application Customizer consists of several tasks starting from how to set your development environment and building the navigation component itself, deploying it to a SharePoint Online site, and configuring the dynamic navigation links. In this scenario, a detailed explanation on how to implement such a project using SPFx(Sharepoint Framework) and the Application Customizer [&hellip;]","og_url":"https:\/\/softreetechnology.com\/blog\/sharepoint\/creating-a-dynamic-navigation-bar-using-spfx-application-customizer\/","og_site_name":"Softree Technology","article_published_time":"2024-11-08T13:34:38+00:00","article_modified_time":"2024-11-08T13:46:13+00:00","og_image":[{"width":1080,"height":1080,"url":"https:\/\/softreetechnology.com\/blog\/wp-content\/uploads\/2024\/11\/Creating-a-Dynamic-Navigation-Bar-using-SPFx-Application-Customizer-2.png","type":"image\/png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"Written by":"admin","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/softreetechnology.com\/blog\/sharepoint\/creating-a-dynamic-navigation-bar-using-spfx-application-customizer\/#article","isPartOf":{"@id":"https:\/\/softreetechnology.com\/blog\/sharepoint\/creating-a-dynamic-navigation-bar-using-spfx-application-customizer\/"},"author":{"name":"admin","@id":"https:\/\/softreetechnology.com\/blog\/#\/schema\/person\/98740297642f06debccdcee2de84086b"},"headline":"Creating a Dynamic Navigation Bar using SPFx Application Customizer","datePublished":"2024-11-08T13:34:38+00:00","dateModified":"2024-11-08T13:46:13+00:00","mainEntityOfPage":{"@id":"https:\/\/softreetechnology.com\/blog\/sharepoint\/creating-a-dynamic-navigation-bar-using-spfx-application-customizer\/"},"wordCount":121,"commentCount":0,"publisher":{"@id":"https:\/\/softreetechnology.com\/blog\/#organization"},"image":{"@id":"https:\/\/softreetechnology.com\/blog\/sharepoint\/creating-a-dynamic-navigation-bar-using-spfx-application-customizer\/#primaryimage"},"thumbnailUrl":"https:\/\/softreetechnology.com\/blog\/wp-content\/uploads\/2024\/11\/Creating-a-Dynamic-Navigation-Bar-using-SPFx-Application-Customizer-2.png","keywords":["Building the Dynamic Navigation Bar","Creating the Application Customizer","Deploying to SharePoint Online","React","SharePoint","SharePoint Online","SPFx"],"articleSection":["SharePoint"],"inLanguage":"en","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/softreetechnology.com\/blog\/sharepoint\/creating-a-dynamic-navigation-bar-using-spfx-application-customizer\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/softreetechnology.com\/blog\/sharepoint\/creating-a-dynamic-navigation-bar-using-spfx-application-customizer\/","url":"https:\/\/softreetechnology.com\/blog\/sharepoint\/creating-a-dynamic-navigation-bar-using-spfx-application-customizer\/","name":"Creating a Dynamic Navigation Bar using SPFx Application Customizer - Softree Technology","isPartOf":{"@id":"https:\/\/softreetechnology.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/softreetechnology.com\/blog\/sharepoint\/creating-a-dynamic-navigation-bar-using-spfx-application-customizer\/#primaryimage"},"image":{"@id":"https:\/\/softreetechnology.com\/blog\/sharepoint\/creating-a-dynamic-navigation-bar-using-spfx-application-customizer\/#primaryimage"},"thumbnailUrl":"https:\/\/softreetechnology.com\/blog\/wp-content\/uploads\/2024\/11\/Creating-a-Dynamic-Navigation-Bar-using-SPFx-Application-Customizer-2.png","datePublished":"2024-11-08T13:34:38+00:00","dateModified":"2024-11-08T13:46:13+00:00","breadcrumb":{"@id":"https:\/\/softreetechnology.com\/blog\/sharepoint\/creating-a-dynamic-navigation-bar-using-spfx-application-customizer\/#breadcrumb"},"inLanguage":"en","potentialAction":[{"@type":"ReadAction","target":["https:\/\/softreetechnology.com\/blog\/sharepoint\/creating-a-dynamic-navigation-bar-using-spfx-application-customizer\/"]}]},{"@type":"ImageObject","inLanguage":"en","@id":"https:\/\/softreetechnology.com\/blog\/sharepoint\/creating-a-dynamic-navigation-bar-using-spfx-application-customizer\/#primaryimage","url":"https:\/\/softreetechnology.com\/blog\/wp-content\/uploads\/2024\/11\/Creating-a-Dynamic-Navigation-Bar-using-SPFx-Application-Customizer-2.png","contentUrl":"https:\/\/softreetechnology.com\/blog\/wp-content\/uploads\/2024\/11\/Creating-a-Dynamic-Navigation-Bar-using-SPFx-Application-Customizer-2.png","width":1080,"height":1080},{"@type":"BreadcrumbList","@id":"https:\/\/softreetechnology.com\/blog\/sharepoint\/creating-a-dynamic-navigation-bar-using-spfx-application-customizer\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/softreetechnology.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Creating a Dynamic Navigation Bar using SPFx Application Customizer"}]},{"@type":"WebSite","@id":"https:\/\/softreetechnology.com\/blog\/#website","url":"https:\/\/softreetechnology.com\/blog\/","name":"Softree Technology","description":"Celebrating 10+ Years in SharePoint Consulting !","publisher":{"@id":"https:\/\/softreetechnology.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/softreetechnology.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en"},{"@type":"Organization","@id":"https:\/\/softreetechnology.com\/blog\/#organization","name":"Softree Technology","url":"https:\/\/softreetechnology.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en","@id":"https:\/\/softreetechnology.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/softreetechnology.com\/blog\/wp-content\/uploads\/2023\/03\/cropped-white-logo-soft.png","contentUrl":"https:\/\/softreetechnology.com\/blog\/wp-content\/uploads\/2023\/03\/cropped-white-logo-soft.png","width":844,"height":230,"caption":"Softree Technology"},"image":{"@id":"https:\/\/softreetechnology.com\/blog\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/softreetechnology.com\/blog\/#\/schema\/person\/98740297642f06debccdcee2de84086b","name":"admin","image":{"@type":"ImageObject","inLanguage":"en","@id":"https:\/\/softreetechnology.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/6fc78c8a7aa3fb0bf43c3b9a2e3962d7?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/6fc78c8a7aa3fb0bf43c3b9a2e3962d7?s=96&d=mm&r=g","caption":"admin"},"sameAs":["https:\/\/softreeconsulting.com"],"url":"https:\/\/softreetechnology.com\/blog\/author\/admin\/"}]}},"_links":{"self":[{"href":"https:\/\/softreetechnology.com\/blog\/wp-json\/wp\/v2\/posts\/7240","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/softreetechnology.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/softreetechnology.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/softreetechnology.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/softreetechnology.com\/blog\/wp-json\/wp\/v2\/comments?post=7240"}],"version-history":[{"count":1,"href":"https:\/\/softreetechnology.com\/blog\/wp-json\/wp\/v2\/posts\/7240\/revisions"}],"predecessor-version":[{"id":7242,"href":"https:\/\/softreetechnology.com\/blog\/wp-json\/wp\/v2\/posts\/7240\/revisions\/7242"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/softreetechnology.com\/blog\/wp-json\/wp\/v2\/media\/7243"}],"wp:attachment":[{"href":"https:\/\/softreetechnology.com\/blog\/wp-json\/wp\/v2\/media?parent=7240"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/softreetechnology.com\/blog\/wp-json\/wp\/v2\/categories?post=7240"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/softreetechnology.com\/blog\/wp-json\/wp\/v2\/tags?post=7240"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}