-
- 概览
-
- 概览
- std/build
- std/build/billing
- std/build/billing/rate-card
- std/build/collection
- std/build/collection/record-label
- std/build/collection/system-fields
- std/build/date
- std/build/error
- std/build/finance
- std/build/finance/currency
- std/build/i18n
- std/build/i18n/catalog
- std/build/i18n/locale
- std/build/json
- std/build/rate-limit
- std/build/reckon
- std/build/reckon/cel.server
- std/build/reckon/definition
- std/build/reckon/deps
- std/build/reckon/hash
- std/build/reckon/ops
- std/build/reckon/register.server
- std/build/reckon/replay
- std/build/reckon/runtime.server
- std/build/secret
- std/build/string
- std/build/tree
std/build/collection/record-label
std/build/collection/record-label
Functions
labelTermText()
function labelTermText(value): string | null;Defined in: apps/website/.api-docs-entry/std/build/collection/record-label.d.ts:10
Render one label term as text, or null when it has nothing to contribute.
CEL cannot do this itself. Its + has no overload but string+string, and string() has no
overload for timestamps or null — so a label naming a day-precision instant() column, a number,
a boolean or an empty field throws instead of concatenating, however the expression is written.
Coercion therefore belongs here, where the values are ordinary JavaScript and a missing one can
simply be left out.
Parameters
| Parameter | Type |
|---|---|
value |
unknown |
Returns
string | null
resolveRecordLabel()
function resolveRecordLabel(recordLabelExpression, record): string | null;Defined in: apps/website/.api-docs-entry/std/build/collection/record-label.d.ts:18
The title a record reads as, from the CEL expression its collection declares as recordLabel.
Null means the record cannot name itself — no expression, or nothing the expression touched had any text to give. A caller decides what to show instead; this never invents a stand-in, and in particular never falls back to a primary key.
Parameters
| Parameter | Type |
|---|---|
recordLabelExpression |
string | null |
record |
object |
Returns
string | null