Skip to main content
Version: 2.0.0-alpha

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

lib/src/models/properties.ts:196