HtmlForgeX

API Reference

Class

TablerColumn

Namespace HtmlForgeX
Assembly HtmlForgeX
Base Element

Responsive column container for arranging content inside Tabler rows. Adds a sensible, Tabler-native default for vertical spacing between direct children using Bootstrap's vstack and gap-* utilities.

Inheritance

Constructors

TablerColumn 2 overloads
public TablerColumn() #

Initializes a new default column with col width.

public TablerColumn(TablerColumnNumber columnNumber) #

Initializes a new column with an explicit width class.

Parameters

columnNumber HtmlForgeX.TablerColumnNumber requiredposition: 0

Methods

public TablerColumn AddClass(String className) #
Returns: TablerColumn

Adds a CSS class to the column.

Parameters

className System.String requiredposition: 0
public TablerColumn Auto() #
Returns: TablerColumn

Sets the column to auto-width.

public TablerColumn AutoStack(Boolean enable = true) #
Returns: TablerColumn

Enables or disables automatic vertical spacing between direct children. When enabled, this column wraps children in a vstack container with a configurable gap-* to create consistent spacing.

Parameters

enable System.Boolean = true optionalposition: 0
Set to false to render children without the wrapper.

Returns

The current column instance for fluent chaining.

public TablerCardEnhanced CardEnhanced(Action<TablerCardEnhanced> config) #
Returns: TablerCardEnhanced

Adds a TablerCardEnhanced to the column using fluent configuration.

Parameters

config System.Action{HtmlForgeX.TablerCardEnhanced} requiredposition: 0
Action that configures the card.

Returns

The created TablerCardEnhanced.

public TablerColumn StackGap(TablerSpacing spacing) #
Returns: TablerColumn

Sets the gap used for automatic vertical spacing between direct children when Boolean) is enabled.

Parameters

spacing HtmlForgeX.TablerSpacing requiredposition: 0
Spacing scale mapped to Bootstrap's gap-* utilities.

Returns

The current column instance for fluent chaining.

public override String ToString() #
Returns: String

Renders the column and its children. If Boolean) is enabled, children are wrapped in a vstack gap-* container to provide consistent vertical spacing.

public TablerColumn WithClass(String className) #
Returns: TablerColumn

Sets an explicit CSS class for the column container.

Parameters

className System.String requiredposition: 0
The class to apply, e.g. col-6 or col-auto.

Returns

The current column instance for fluent chaining.

Properties

public List<TablerCard> Cards { get; set; } #

Gets the collection of cards contained within the column.

public String Class { get; set; } #

Gets or sets the CSS class for the column. Defaults to col.

public Int32 Count { get; set; } #

Gets or sets the number of grid columns used for width.

Fields

_autoStack #

Enables automatic vertical spacing between this column's direct children using Bootstrap's vstack utility. This prevents adjacent cards or blocks from touching without requiring per-element margins.

_stackGap #

The spacing scale (0–5 or auto) used with the gap-* class when automatic stacking is enabled. Defaults to Medium (gap-3).

Extension Methods

public static SmartTab SmartTab(TablerColumn column, Action<SmartTab> configure = null) #
Returns: SmartTab

Adds a SmartTab component to the element.

Parameters

element HtmlForgeX.Element requiredposition: 0
The element to add the SmartTab to.
configure System.Action{HtmlForgeX.SmartTab} = null optionalposition: 1
Configuration action for the SmartTab.

Returns

The SmartTab instance for further configuration.

public static SmartWizard SmartWizard(TablerColumn column, Action<SmartWizard> configure = null) #
Returns: SmartWizard

Adds a SmartWizard component to the element.

Parameters

element HtmlForgeX.Element requiredposition: 0
The element to add the SmartWizard to.
configure System.Action{HtmlForgeX.SmartWizard} = null optionalposition: 1
Configuration action for the SmartWizard.

Returns

The SmartWizard instance for further configuration.