Page Builder — sgcHTML | eSeGeCe

Page Builder

TsgcHTMLPageBuilder — assembles registered sgcHTML components into a complete Bootstrap 5 page, with a design-time visual editor in the Delphi IDE.

TsgcHTMLPageBuilder

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.

Component class

TsgcHTMLPageBuilder

Role

Visual page composition

Languages

Delphi, C++ Builder, .NET

Register components, call Build

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 := ptDark;
    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 = ptDark;
  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 = TsgcHTMLPageTheme.ptDark;
builder.RegisterComponent(navbar);
builder.RegisterComponent(statCard);
builder.RegisterComponent(chart);
string html = builder.Build();

Key properties & methods

The members you reach for most often.

Title

Document title inserted into the <title> tag by the underlying Bootstrap template.

Theme

ptDefault, ptDark or ptDarkPro; injects a theme-specific CSS block into the document head (ptDefault keeps standard Bootstrap, ptDark a dark palette, ptDarkPro a full professional dark theme).

Template

Access the internal TsgcHTMLTemplate_Bootstrap to set Language, Direction, HeadContent or other document-level properties.

Components

Ordered collection of registered page components; the builder concatenates their HTML output in registration order.

RegisterComponent

Adds a component to the build list; components are rendered in the order they were registered.

Build

Renders all registered components, wraps the combined output in a Bootstrap 5 document and returns the complete HTML string.

Keep exploring

Online HelpFull API reference and usage guide for this component.
All sgcHTML ComponentsBrowse the full feature matrix of 80+ components.
Download Free TrialThe 30-day trial ships the 60.HTML demo projects.
PricingSingle, Team and Site licenses with full source code.
Best value: All-AccessEvery eSeGeCe product, Premium Support included, from €1,059/year.
See All-Access pricing

Ready to Get Started?

Download the free trial and start building web UIs in Delphi, C++ Builder and .NET.