HtmlForgeX

API Reference

Class

TablerSection

Namespace HtmlForgeX
Assembly HtmlForgeX
Base Element

Represents a section container for organizing content within a Tabler page.

Inheritance

Constructors

public TablerSection() #

Initializes a new instance of the TablerSection class.

Methods

public TablerSection AddContent(Action<TablerSection> config) #
Returns: TablerSection

Adds content to the section.

Parameters

config System.Action{HtmlForgeX.TablerSection} requiredposition: 0
public TablerSection AutoStackChildren(Boolean enable = true) #
Returns: TablerSection

Enables automatic vertical spacing between direct children using Bootstrap vstack and gap-*. Defaults to the document configuration when not explicitly set.

Parameters

enable System.Boolean = true optionalposition: 0
public TablerSection IntraSectionGap(TablerSpacing spacing) #
Returns: TablerSection

Overrides the inner gap (e.g., title to content) when auto stacking. Defaults to Document.Configuration.Layout.InnerStackGap.

Parameters

spacing HtmlForgeX.TablerSpacing requiredposition: 0
RegisterLibraries() #

Registers the required libraries for TablerSection.

public TablerSection SectionGap(TablerSpacing spacing) #
Returns: TablerSection

Overrides the outer gap (between direct children) when auto stacking. Defaults to Document.Configuration.Layout.DefaultStackGap.

Parameters

spacing HtmlForgeX.TablerSpacing requiredposition: 0
public TablerSection Surface(TablerSurfaceStyle style) #
Returns: TablerSection

Applies a shared surface treatment to the section shell.

Parameters

style HtmlForgeX.TablerSurfaceStyle requiredposition: 0
public override String ToString() #
Returns: String

Converts the section to its HTML representation.

public TablerSection WithBackgroundColor(TablerColor color) #
Returns: TablerSection

Sets the background color for the section.

Parameters

color HtmlForgeX.TablerColor requiredposition: 0
public TablerSection WithBorder(Boolean border = true, Nullable<TablerColor> color = null) #
Returns: TablerSection

Adds a border to the section.

Parameters

border System.Boolean = true optionalposition: 0
color System.Nullable{HtmlForgeX.TablerColor} = null optionalposition: 1
public TablerSection WithMargin(TablerSpacing spacing) #
Returns: TablerSection

Sets the margin for the section.

Parameters

spacing HtmlForgeX.TablerSpacing requiredposition: 0
public TablerSection WithPadding(TablerSpacing spacing) #
Returns: TablerSection

Sets the padding for the section.

Parameters

spacing HtmlForgeX.TablerSpacing requiredposition: 0
public TablerSection WithTitle(String title, HeaderLevelTag level = H3) #
Returns: TablerSection

Sets the title for the section.

Parameters

title System.String requiredposition: 0
level HtmlForgeX.HeaderLevelTag = H3 optionalposition: 1