Skip to content

CompiledText

Property Modifier Type Description
isSingleExpression readonly boolean True when the text is exactly one placeholder, e.g. “{{ row.total }}”.
isStatic readonly boolean True when the text has no placeholders.
parts readonly readonly TextPart[] -
source readonly string -
evaluate(scope?, options?): string;

Evaluates placeholders and concatenates the result.

Parameter Type
scope? Readonly<Record<string, unknown>>
options? TextEvaluateOptions

string


evaluateValue(scope?, options?): unknown;

The raw value for single-expression text, otherwise the evaluated string.

Parameter Type
scope? Readonly<Record<string, unknown>>
options? EvaluateOptions

unknown