跳到主要内容

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:1

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:9

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