Bootstrap Template
TsgcHTMLTemplate_Bootstrap — wraps any HTML body content in a complete, self-contained Bootstrap 5 document with configurable theme, language and text direction.
TsgcHTMLTemplate_Bootstrap — wraps any HTML body content in a complete, self-contained Bootstrap 5 document with configurable theme, language and text direction.
The lowest-level document wrapper in sgcHTML. Assign your composed component HTML to BodyContent, configure the document-level settings, then read HTML to get a deployable, self-contained Bootstrap 5 page with embedded assets.
TsgcHTMLTemplate_Bootstrap
Full Bootstrap 5 document wrapper
Delphi, C++ Builder, .NET
Set BodyContent to your rendered component HTML, optionally configure Title, Theme and Language, then read the HTML property to get a complete, deployable page.
uses
sgcHTML_Template_Bootstrap;
var
oTemplate: TsgcHTMLTemplate_Bootstrap;
begin
oTemplate := TsgcHTMLTemplate_Bootstrap.Create(nil);
try
oTemplate.Title := 'My App';
oTemplate.Theme := htDark;
oTemplate.Language := 'en';
oTemplate.BodyContent := oNavBar.HTML + oGrid.HTML;
Response.ContentText := oTemplate.HTML;
finally
oTemplate.Free;
end;
end;
TsgcHTMLTemplate_Bootstrap *oTemplate = new TsgcHTMLTemplate_Bootstrap(NULL);
try
{
oTemplate->Title = "My App";
oTemplate->Theme = htDark;
oTemplate->Language = "en";
oTemplate->BodyContent = oNavBar->HTML + oGrid->HTML;
Response->ContentText = oTemplate->HTML;
}
__finally { delete oTemplate; }
var template = new TsgcHTMLTemplate_Bootstrap();
template.Title = "My App";
template.Theme = TsgcHTMLTheme.htDark;
template.Language = "en";
template.BodyContent = navbar.HTML + grid.HTML;
response.ContentText = template.HTML;
The members you reach for most often.
The HTML fragment placed inside the document <body>; assign the concatenated output of your sgcHTML components here.
Text for the <title> element in the document head.
htLight, htDark or htSystem; sets data-bs-theme on the <html> element so Bootstrap's colour system switches correctly.
lang attribute on the <html> element; defaults to 'en'.
hdLTR or hdRTL; sets the dir attribute for right-to-left language support.
Extra HTML injected into <head> before the closing tag; use for custom <style> blocks, <meta> tags or extra <script> references.
| Online HelpFull API reference and usage guide for this component. | Open | |
| All sgcHTML ComponentsBrowse the full feature matrix of 60+ components. | Open | |
| Download Free TrialThe 30-day trial ships the 60.HTML demo projects. | Open | |
| PricingSingle, Team and Site licenses with full source code. | Open |