Skip to main content
Version: 3.0.0-beta

Type Alias: EnumValues

EnumValues: EnumValueConfig[] | Record<string | number, string | EnumValueConfig>

We use this type to define mapping between string or number values in the data source to a label (such in a select dropdown). The key in this Record is the value saved in the datasource, and the value in this record is the label displayed in the UI. You can add additional customization by assigning a EnumValueConfig for the label instead of a simple string (for enabling or disabling options and choosing colors). If you need to ensure the order of the elements use an array of EnumValueConfig

Defined in​

packages/firecms_core/src/types/properties.ts:203

Sign up to our newsletter to get the latest news and updates. No spam!