Skip to content

basalt / admin/src / optionLabel

Function: optionLabel() ​

> optionLabel(field, value): string

Defined in: admin/src/fields.ts:33

The label to show for one option value, falling back to the value itself.

Parameters ​

field ​

Field

value ​

string

Returns ​

string

Released under the MIT License.