DashboardLayout

TsgcHTMLDashboardLayout — 固定サイドバーとタイトル付きのコンテンツセクションを備えた完全なダッシュボードシェルを Delphi、C++ Builder、.NET でレンダリングします。

TsgcHTMLDashboardLayout

完全なダッシュボードシェルを出力するレイアウトコンポーネントです。左側に固定サイドバー、タイトル付きセクションから構築されたパディング付きのメイン領域を備えます。Sidebar を設定し、セクションを追加したら、HTML プロパティを読み取ります。

コンポーネントクラス

TsgcHTMLDashboardLayout

レンダリング結果

ダッシュボードシェル(固定サイドバー + コンテンツ)

言語

Delphi, C++ Builder, .NET

作成し、シェルを構築し、レンダリングする

読み取り専用の Sidebar を設定し、ブロックごとに AddSection(title, content) を呼び出したら、HTML を読み取ります(または TsgcHTMLTemplate_Bootstrap のページに組み込みます)。

uses
  sgcHTML_Enums, sgcHTML_Component_DashboardLayout;

var
  oDash: TsgcHTMLDashboardLayout;
begin
  oDash := TsgcHTMLDashboardLayout.Create(nil);
  try
    oDash.DarkMode := True;
    oDash.FooterText := '© 2026 Acme Inc.';

    oDash.Sidebar.Brand := 'Acme Admin';
    oDash.Sidebar.Items.Add.Text := 'Overview';
    oDash.Sidebar.Items.Add.Text := 'Reports';

    oDash.AddSection('Sales', '<p>Revenue is up 12%</p>');
    oDash.AddSection('Activity', '<p>3 new orders</p>');

    WebModule.Response := oDash.HTML;   // dashboard shell
  finally
    oDash.Free;
  end;
end;
// includes: sgcHTML_Enums.hpp, sgcHTML_Component_DashboardLayout.hpp

TsgcHTMLDashboardLayout *oDash = new TsgcHTMLDashboardLayout(NULL);
try
{
  oDash->DarkMode = true;
  oDash->FooterText = "© 2026 Acme Inc.";

  oDash->Sidebar->Brand = "Acme Admin";
  oDash->Sidebar->Items->Add()->Text = "Overview";
  oDash->Sidebar->Items->Add()->Text = "Reports";

  oDash->AddSection("Sales", "<p>Revenue is up 12%</p>");
  oDash->AddSection("Activity", "<p>3 new orders</p>");

  String html = oDash->HTML;   // dashboard shell
}
__finally
{
  delete oDash;
}
using esegece.sgcWebSockets;

var dash = new TsgcHTMLDashboardLayout();
dash.DarkMode = true;
dash.FooterText = "© 2026 Acme Inc.";

dash.Sidebar.Brand = "Acme Admin";
dash.Sidebar.Items.Add().Text = "Overview";
dash.Sidebar.Items.Add().Text = "Reports";

dash.AddSection("Sales", "<p>Revenue is up 12%</p>");
dash.AddSection("Activity", "<p>3 new orders</p>");

string html = dash.HTML;   // dashboard shell

主なプロパティ & メソッド

最もよく使うメンバー。

サイドバー

Sidebar は、左側に固定でレンダリングされる読み取り専用の TsgcHTMLComponent_Sidebar です。その BrandWidthItems をその場で設定します。

セクション

AddSection(aTitle, aContent, aID) はタイトル付きの <section> を追加します。AddRawContent(aContent) はマークアップをそのまま挿入し、ClearContent はメイン領域を空にします。

シェル

Fluid は全幅コンテナを切り替え、FooterText は中央寄せのフッターを追加し、LayoutID はラッパーの要素 id を設定します。

ダークモード

DarkMode は、シェル内のカード、テーブル、フォーム、ナビ、リストグループを再配色するダークテーマのスタイルシートを注入します。

間隔 & アクセント

MainPaddingMainMinHeightSectionMarginBottom がメイン領域のサイズを設定します。SectionTitleBorderColorStyleTsgcHTMLColor)が各セクションのタイトル下線を色付けします。

出力

HTML は完全なシェル — 固定サイドバー、メインコンテンツ、フッター — を返します。そのまま配信できる状態か、ページテンプレートの BodyContent に割り当てます。

さらに詳しく

すべての sgcHTML コンポーネント60 種類以上のコンポーネントの完全な機能マトリックスを見る。
無料体験版をダウンロード30 日間の体験版には 60.HTML デモプロジェクトが付属します。
価格完全なソースコード付きの Single、Team、Site ライセンス。

始める準備はできましたか?

無料体験版をダウンロードして、Delphi、C++ Builder、.NET で Web UI の構築を始めましょう。