Sidebar
TsgcHTMLComponent_Sidebar — render a vertical side navigation with icons, section headers, dividers and an optional footer, in Delphi, C++ Builder and .NET.
TsgcHTMLComponent_Sidebar — render a vertical side navigation with icons, section headers, dividers and an optional footer, in Delphi, C++ Builder and .NET.
A navigation component that emits a Bootstrap 5 vertical sidebar with an optional brand, nav-pill links, headers, dividers and a footer. Add items, then read the HTML property.
TsgcHTMLComponent_Sidebar
Bootstrap 5 sidebar markup
Delphi, C++ Builder, .NET
Set Brand and Width, push items (links, headers, dividers) into Items, then read HTML.
The members you reach for most often.
Brand sets the heading shown at the top of the panel; BrandHref is the link it points to (defaults to #).
Items.Add returns a TsgcHTMLSidebarItem; set Text, Href, Icon and Active for a link, or flag Header / Divider for a section title or rule.
Dark (default True) switches between dark and light backgrounds and the matching link text color.
Width sets the panel width (defaults to 250px); Fixed pins it to the left edge; SidebarID and CSSClass set the id and extra classes.
FooterHTML injects raw markup below a divider, or FooterText renders a muted caption when no HTML is set.
HTML returns the full vertical <div> navigation — serve it, or assign it to a page template's BodyContent.