HtmlForgeX

API Reference

Class

DataTablesRowGroupHeaderTemplate

Namespace HtmlForgeX
Assembly HtmlForgeX
Modifiers sealed

Typed builder for DataTables RowGroup header rendering templates. Produces a safe JavaScript startRender function without requiring raw HTML/JS in consumers.

Inheritance

  • Object
  • DataTablesRowGroupHeaderTemplate

Constructors

Methods

public static DataTablesRowGroupHeaderTemplate FromFormat(String format) #
Returns: DataTablesRowGroupHeaderTemplate

Creates a template from a format string using placeholders {group} and {count}.

Parameters

format System.String requiredposition: 0
public static DataTablesRowGroupHeaderTemplate FromFormatUnsafe(String format) #
Returns: DataTablesRowGroupHeaderTemplate

Creates a template from a format string using placeholders {group} and {count}, without escaping {group}.

Parameters

format System.String requiredposition: 0
public String ToStartRenderFunction() #
Returns: String

Builds the JavaScript startRender function body for RowGroup.

public static DataTablesRowGroupHeaderTemplate WithCountLabel(String label) #
Returns: DataTablesRowGroupHeaderTemplate

Creates a template with a count label (e.g., "Checks", "endpoints").

Parameters

label System.String requiredposition: 0

Properties

public String GroupClass { get; set; } #

CSS class(es) applied to the group label span.

public String CountClass { get; set; } #

CSS class(es) applied to the count span.

public String CountLabel { get; set; } #

Label displayed after the count (e.g., "Checks").

public String CountPrefix { get; set; } #

Prefix before the count (default "(").

public String CountSuffix { get; set; } #

Suffix after the count (default ")").

public String CountSeparator { get; set; } #

Separator between count and label (default space).

public Boolean IncludeCount { get; set; } #

When true, includes the count section. When false, only the group label is rendered.

public Boolean EscapeGroup { get; set; } #

When true, HTML-escapes the group value in the generated JS.

public String Format { get; set; } #

Optional raw format string using placeholders {group} and {count}. When set, overrides other template properties.