Skip to main content
Version: 2.0.0

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


Enterprise or start-up?

Learn how to get the most out of your project with the help of our consulting team.
Learn more
Sign up to our newsletter to get the latest news and updates. No spam!