API Reference
DataTablesRowGroupHeaderTemplate
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
public DataTablesRowGroupHeaderTemplate() #Methods
public static DataTablesRowGroupHeaderTemplate FromFormat(String format) #DataTablesRowGroupHeaderTemplateCreates a template from a format string using placeholders {group} and {count}.
Parameters
- format System.String
public static DataTablesRowGroupHeaderTemplate FromFormatUnsafe(String format) #DataTablesRowGroupHeaderTemplateCreates a template from a format string using placeholders {group} and {count}, without escaping {group}.
Parameters
- format System.String
public String ToStartRenderFunction() #StringBuilds the JavaScript startRender function body for RowGroup.
public static DataTablesRowGroupHeaderTemplate WithCountLabel(String label) #DataTablesRowGroupHeaderTemplateCreates a template with a count label (e.g., "Checks", "endpoints").
Parameters
- label System.String
Inherited Methods
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.