- Home
- /
- Design
- /
- DMBBootstrapBuilder
- /
- NavBar
Nav Bar
The navigation bar is configured at application level — not built inline in views.
INavigationBarComposer
The navbar is assembled by implementing INavigationBarComposer and registering it with the DI container. The layout calls it automatically.
INavigationBarComposer
C#
@await Html.PartialAsync("Examples_Raw/NavBar/_NavBarComposer_Raw")C#
@await Html.PartialAsync("Examples_Raw/NavBar/_NavBarComposer_Raw")BasicNavigationBarComposer
BasicNavigationBarComposer is a ready-made base class. Override Brand(), LeftItems() and RightItems() to customize the navbar without implementing the full interface.
BasicNavigationBarComposer
C#
@await Html.PartialAsync("Examples_Raw/NavBar/_BasicNavBarComposer_Raw")C#
@await Html.PartialAsync("Examples_Raw/NavBar/_BasicNavBarComposer_Raw")
Session Consent : Consent to use session for this website