HtmlForgeX

API Reference

Class

DataGridPanelContent

Namespace HtmlForgeX
Assembly HtmlForgeX
Base Element

Small fluent content builder for enhanced DataGrid panels. Produces inline KPI chips, badges, separators and a micro progress bar.

Inheritance

Methods

Build() #

Exposes the underlying element to be embedded by the parent item.

public DataGridPanelContent Kpi(String label, Int32 value, TablerColor color, Nullable<TablerColor> labelColor = null) #
Returns: DataGridPanelContent

Adds a small label+value KPI element.

Parameters

label System.String requiredposition: 0
value System.Int32 requiredposition: 1
color HtmlForgeX.TablerColor requiredposition: 2
labelColor System.Nullable{HtmlForgeX.TablerColor} = null optionalposition: 3
public DataGridPanelContent Progress(Double fraction, TablerColor color) #
Returns: DataGridPanelContent

Adds a thin micro progress bar; fraction in [0..1].

Parameters

fraction System.Double requiredposition: 0
color HtmlForgeX.TablerColor requiredposition: 1
Separator 2 overloads
public DataGridPanelContent Separator(String width = null) #
Returns: DataGridPanelContent

Inserts a tiny separator; specify width (e.g., .25rem) for custom spacing.

Parameters

width System.String = null optionalposition: 0
public DataGridPanelContent Separator(DataGridSeparatorStyle style, String gap = null) #
Returns: DataGridPanelContent

Adds a configurable separator between inline tokens.

Parameters

style HtmlForgeX.DataGridSeparatorStyle requiredposition: 0
gap System.String = null optionalposition: 1
public override String ToString() #
Returns: String

Returns the rendered HTML for the composed panel content.