NavBar
TsgcHTMLComponent_NavBar — render a responsive top navigation bar with a brand and collapsible nav links, in Delphi, C++ Builder and .NET.
TsgcHTMLComponent_NavBar — render a responsive top navigation bar with a brand and collapsible nav links, in Delphi, C++ Builder and .NET.
A navigation component that emits a Bootstrap 5 <nav class="navbar"> with a brand, a responsive toggler and a collapsible list of links. Set the brand, add items, then read the HTML property.
TsgcHTMLComponent_NavBar
Bootstrap 5 navbar markup
Delphi, C++ Builder, .NET
Set Brand, push one or more items into Items, then read HTML (or drop it into a TsgcHTMLTemplate_Bootstrap page).
The members you reach for most often.
Brand sets the brand text shown at the left; BrandHref is the link it points to (defaults to #).
Items.Add returns a TsgcHTMLNavItem; set its Text, Href, Active and Disabled to build the collapsible link list.
Theme picks ntDark (default) or ntLight, mapping to the Bootstrap dark/light navbar background.
Expand chooses when the toggler collapses: neSmall, neMedium, neLarge (default), neXLarge or neAlways.
Fluid toggles container-fluid vs container; NavBarID sets the element id; CSSClass appends extra classes.
HTML returns the full <nav class="navbar"> with brand, toggler and collapsible nav — serve it, or assign it to a page template's BodyContent.