HtmlForgeX

API Reference

Class

Body

Namespace HtmlForgeX
Assembly HtmlForgeX
Base Element

Represents the <body> element of an HTML document.

Inheritance

Constructors

public Body(Document document) #

Initializes a new instance of the Body class.

Parameters

document HtmlForgeX.Document requiredposition: 0
The parent document.

Methods

Add(System.Action{HtmlForgeX.Body} buildAction) #

Executes a build action in the context of the body.

Parameters

buildAction System.Action{HtmlForgeX.Body} required
Action that configures the body.

Returns

The current Body instance.

public TablerLayoutContainer Layout(Action<TablerLayoutContainer> config) #
Returns: TablerLayoutContainer
EditorBrowsable(2) Obsolete("Legacy navigation stack. Prefer TablerNavPageWrapper for single-page layouts or TablerMultiPageBuilder for multi-page sites.", false)

Adds a layout container with navigation and multiple pages to the body.

Parameters

config System.Action{HtmlForgeX.TablerLayoutContainer} requiredposition: 0
Configuration action for the layout container.

Returns

The TablerLayoutContainer element.

public TablerNavPageWrapper NavPage(Action<TablerNavPageWrapper> config) #
Returns: TablerNavPageWrapper

Adds a Tabler page wrapper with navigation support.

Parameters

config System.Action{HtmlForgeX.TablerNavPageWrapper} requiredposition: 0
Configuration action for the wrapper.

Returns

The created TablerNavPageWrapper.

Page 2 overloads
public TablerPage Page() #
Returns: TablerPage

Adds a Tabler page.

Returns

The created TablerPage.

public TablerPage Page(Action<TablerPage> config) #
Returns: TablerPage

Adds a Tabler page and invokes configuration.

Parameters

config System.Action{HtmlForgeX.TablerPage} requiredposition: 0
Configuration delegate.

Returns

The created TablerPage.

public override String ToString() #
Returns: String

Extension Methods

Breadcrumb 2 overloads
public static TablerBreadcrumb Breadcrumb(Body body, Action<TablerBreadcrumb> configure) #
Returns: TablerBreadcrumb

Adds a Tabler breadcrumb to the body with fluent configuration

Parameters

body HtmlForgeX.Body requiredposition: 0
configure System.Action{HtmlForgeX.TablerBreadcrumb} requiredposition: 1
public static TablerBreadcrumb Breadcrumb(Body body) #
Returns: TablerBreadcrumb

Adds a Tabler breadcrumb to the body

Parameters

body HtmlForgeX.Body requiredposition: 0
Button 2 overloads
public static TablerButton Button(Body body, String text, Action<TablerButton> configure) #
Returns: TablerButton

Adds a Tabler button to the body with fluent configuration

Parameters

body HtmlForgeX.Body requiredposition: 0
text System.String requiredposition: 1
configure System.Action{HtmlForgeX.TablerButton} requiredposition: 2
public static TablerButton Button(Body body, String text, TablerButtonVariant variant = Primary) #
Returns: TablerButton

Adds a Tabler button to the body with fluent configuration

Parameters

body HtmlForgeX.Body requiredposition: 0
text System.String requiredposition: 1
configure System.Action{HtmlForgeX.TablerButton} = Primary optionalposition: 2
Dropdown 2 overloads
public static TablerDropdown Dropdown(Body body, String text, Action<TablerDropdown> configure) #
Returns: TablerDropdown

Adds a Tabler dropdown to the body with fluent configuration

Parameters

body HtmlForgeX.Body requiredposition: 0
text System.String requiredposition: 1
configure System.Action{HtmlForgeX.TablerDropdown} requiredposition: 2
public static TablerDropdown Dropdown(Body body, String text) #
Returns: TablerDropdown

Adds a Tabler dropdown to the body

Parameters

body HtmlForgeX.Body requiredposition: 0
text System.String requiredposition: 1
Footer 2 overloads
Header 2 overloads
public static TablerHeader Header(Body body, Action<TablerHeader> configure) #
Returns: TablerHeader

Adds a Tabler header to the body with fluent configuration

Parameters

body HtmlForgeX.Body requiredposition: 0
configure System.Action{HtmlForgeX.TablerHeader} requiredposition: 1
public static TablerHeader Header(Body body) #
Returns: TablerHeader

Adds a Tabler header to the body

Parameters

body HtmlForgeX.Body requiredposition: 0
public static TablerButton LinkButton(Body body, String text, String href, TablerButtonVariant variant = Primary) #
Returns: TablerButton

Adds a Tabler link button to the body

Parameters

body HtmlForgeX.Body requiredposition: 0
text System.String requiredposition: 1
href System.String requiredposition: 2
variant HtmlForgeX.TablerButtonVariant = Primary optionalposition: 3
public static Body Page(Body body, Action<TablerPage> configure) #
Returns: Body

Add a Tabler page structure to the body

Parameters

body HtmlForgeX.Body requiredposition: 0
configure System.Action{HtmlForgeX.TablerPage} requiredposition: 1
Pagination 2 overloads
public static TablerPagination Pagination(Body body, Action<TablerPagination> configure) #
Returns: TablerPagination

Adds a Tabler pagination to the body with fluent configuration

Parameters

body HtmlForgeX.Body requiredposition: 0
configure System.Action{HtmlForgeX.TablerPagination} requiredposition: 1
public static TablerPagination Pagination(Body body) #
Returns: TablerPagination

Adds a Tabler pagination to the body

Parameters

body HtmlForgeX.Body requiredposition: 0
Sidebar 2 overloads
public static TablerSidebar Sidebar(Body body, Action<TablerSidebar> configure) #
Returns: TablerSidebar

Adds a Tabler sidebar to the body with fluent configuration

Parameters

body HtmlForgeX.Body requiredposition: 0
configure System.Action{HtmlForgeX.TablerSidebar} requiredposition: 1
public static TablerSidebar Sidebar(Body body) #
Returns: TablerSidebar

Adds a Tabler sidebar to the body

Parameters

body HtmlForgeX.Body requiredposition: 0