Using Enums in Properties

The Enum type is used for properties that require a selection from a predefined set of values. This type ensures that the property value conforms to one of the defined Enum options.

Attributes for Enum Properties

  • Enum

    • The Enum attribute allows you to select from a list of predefined Enums. This attribute ensures that the property value adheres to one of the valid options defined in the Enum.

    • A + icon next to the Enum field allows you to add a new Enum directly from this configuration interface without navigating back to the Enum section.

    • Validation Rules:

      1. Only one Enum can be selected for a property.

  • Default Value

    • The Default Value attribute sets a predefined value for the property, chosen from the values of the selected Enum. This value is used as the default if no other value is specified.

    • Validation Rules:

      1. If no Enum is selected, you cannot specify a Default Value.

Last updated