Page Builder
TsgcHTMLPageBuilder — assembles registered sgcHTML components into a complete Bootstrap 5 page, with a design-time visual editor in the Delphi IDE.
TsgcHTMLPageBuilder — assembles registered sgcHTML components into a complete Bootstrap 5 page, with a design-time visual editor in the Delphi IDE.
A high-level composition layer that accepts an ordered list of sgcHTML components, wraps their combined HTML output in a Bootstrap 5 document via TsgcHTMLTemplate_Bootstrap and returns the finished page. Supports design-time preview in the Delphi IDE.
TsgcHTMLPageBuilder
Visual page composition
Delphi, C++ Builder, .NET
Drop a TsgcHTMLPageBuilder on the form, register your sgcHTML components in order, set the title and theme, then call Build to receive the complete page HTML.
uses
sgcHTML_PageBuilder;
var
oBuilder: TsgcHTMLPageBuilder;
begin
oBuilder := TsgcHTMLPageBuilder.Create(nil);
try
oBuilder.Title := 'Sales Dashboard';
oBuilder.Theme := htDark;
oBuilder.RegisterComponent(oNavBar);
oBuilder.RegisterComponent(oStatCard);
oBuilder.RegisterComponent(oChart);
Result := oBuilder.Build;
finally
oBuilder.Free;
end;
end;
TsgcHTMLPageBuilder *oBuilder = new TsgcHTMLPageBuilder(NULL);
try
{
oBuilder->Title = "Sales Dashboard";
oBuilder->Theme = htDark;
oBuilder->RegisterComponent(oNavBar);
oBuilder->RegisterComponent(oStatCard);
oBuilder->RegisterComponent(oChart);
String html = oBuilder->Build();
}
__finally { delete oBuilder; }
var builder = new TsgcHTMLPageBuilder();
builder.Title = "Sales Dashboard";
builder.Theme = TsgcHTMLTheme.htDark;
builder.RegisterComponent(navbar);
builder.RegisterComponent(statCard);
builder.RegisterComponent(chart);
string html = builder.Build();
The members you reach for most often.
Document title inserted into the <title> tag by the underlying Bootstrap template.
htLight, htDark or htSystem; applies the Bootstrap data-bs-theme attribute to the document element.
Access the internal TsgcHTMLTemplate_Bootstrap to set Language, Direction, HeadContent or other document-level properties.
Ordered collection of registered page components; the builder concatenates their HTML output in registration order.
Adds a component to the build list; components are rendered in the order they were registered.
Renders all registered components, wraps the combined output in a Bootstrap 5 document and returns the complete HTML string.
| 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 |