stringControlsTable

fun ReportBuilder.stringControlsTable(controls: List<StringControlData>, caption: String? = "String Controls", includeAllowedValues: Boolean = true, includeComment: Boolean = true)(source)

Appends a table of string controls from controls.

Columns: Key | Value | Allowed Values | Comment (Allowed Values column omitted when includeAllowedValues is false; Comment column omitted when includeComment is false).

The Allowed Values column renders the permitted set as a comma-joined string, or "(any)" for unconstrained controls whose allowedValues list is empty.

If controls is empty a short paragraph noting the absence is emitted instead of an empty table.

Parameters

controls

list of StringControlData DTOs to tabulate

caption

optional table caption; defaults to "String Controls"

includeAllowedValues

false omits the Allowed Values column

includeComment

false omits the Comment column