@serenity-is/corelib / DialogAddons / fillTemplate
Function: fillTemplate()
fillTemplate(
template,data,encode):string
Defined in: src/ui/dialogs/dialogaddons.tsx:422
Fills the placeholders of the fields of a record in a text, e.g. "~/Customer?id=", URL-encoded when it is an address.
Parameters
template
string
data
any
encode
boolean = false
Returns
string
The text, or null when a placeholder has no value, so that what it is for is not shown until it has one.