HtmlForgeX

API Reference

Class

TablerOffcanvas

Namespace HtmlForgeX
Assembly HtmlForgeX
Base Element
Modifiers sealed

Bootstrap/Tabler offcanvas component (slide-in panel).

Inheritance

Constructors

Methods

Body 2 overloads
public TablerOffcanvas Body(Action<ElementContainer> body) #
Returns: TablerOffcanvas

Configures the offcanvas body content.

Parameters

body System.Action{HtmlForgeX.ElementContainer} requiredposition: 0
public ElementContainer Body() #
Returns: ElementContainer

Returns the offcanvas body container for manual composition.

GetAuxiliaryChildren() #
public TablerOffcanvas Placement(TablerOffcanvasPlacement placement) #
Returns: TablerOffcanvas

Sets where the offcanvas appears from.

Parameters

placement HtmlForgeX.TablerOffcanvasPlacement requiredposition: 0
RegisterLibraries() #
public TablerOffcanvas Settings(Action<OffcanvasSettings> configure) #
Returns: TablerOffcanvas

Groups less-common options under a single fluent entry point to keep IntelliSense lean.

Parameters

configure System.Action{HtmlForgeX.OffcanvasSettings} requiredposition: 0
public TablerOffcanvas Title(String title) #
Returns: TablerOffcanvas

Sets the offcanvas title.

Parameters

title System.String requiredposition: 0
public TablerButton ToggleButton(String text, Action<TablerButton> configure = null) #
Returns: TablerButton

Creates a typed trigger button that opens this offcanvas (no HTML required).

Parameters

text System.String requiredposition: 0
configure System.Action{HtmlForgeX.TablerButton} = null optionalposition: 1
public override String ToString() #
Returns: String

Properties

public String OffcanvasId { get; } #

Gets the generated offcanvas id (useful for advanced integrations). Prefer TablerButton>) for 0-HTML usage.