HtmlForgeX

API Reference

Class

TablerPage (HtmlForgeX)

Namespace HtmlForgeX
Assembly HtmlForgeX
Base Element

Root container for constructing a Tabler-based page layout. Provides a sane default for vertical spacing when a page renders children directly (without TablerRow) by wrapping them in a Bootstrap vstack with a configurable gap-*.

Inheritance

Constructors

public TablerPage() #

Initializes or configures TablerPage.

Methods

public TablerPage AutoStackChildren(Boolean enable = true) #
Returns: TablerPage

Enables or disables automatic vertical spacing between direct children when this page doesn't use TablerRow.

Parameters

enable System.Boolean = true optionalposition: 0
public TablerPage Content(Element element) #
Returns: TablerPage

Adds a child element to the page and returns the page for chaining.

Parameters

element HtmlForgeX.Element requiredposition: 0
RegisterLibraries() #

Registers the required libraries for TablerPage.

public TablerPage StackGap(TablerSpacing spacing) #
Returns: TablerPage

Sets the default gap for automatic child spacing when stacking is enabled.

Parameters

spacing HtmlForgeX.TablerSpacing requiredposition: 0
public override String ToString() #
Returns: String

Renders the page. If there are no TablerRow children and auto-stacking is enabled, wraps direct children in vstack gap-* so adjacent containers do not touch.

Properties

public TablerLayout Layout { get; set; } #

Gets or sets the overall layout configuration for the page.

Fields

_autoStackChildren #

Enables automatic spacing of direct children (rows/cards/etc.) within the page container when no TablerRow is used. Implemented with Bootstrap vstack and gap-*. Defaults to true.

_stackGap #

The spacing scale used for gap-* when _autoStackChildren is enabled. Defaults to Medium (gap-3).