Skip to content
← Back to Index

enums/graph/<node>/<field>/values/<valueKey>

Configures how an enum field value is displayed in the Portal, including its label and color.

Enum values are automatically discovered from the data stored in the system. This registry key allows you to customize how each value appears in the UI.

Properties

PropertyTypeDescription
labelobjectLocalized labels for the value. Keys are locale codes (e.g., default, sv-SE, en-US).
huenumberColor hue for the value tag (0-360 on the HSL color wheel).
setKeystringKey of the category to group this value under. See categories.

Example Value

json
{
  "label": {
    "default": "VIP Customer",
    "sv-SE": "VIP-kund"
  },
  "hue": 280,
  "setKey": "customer"
}

Example Manifest

Configure an order tag value with a label and color:

yaml
uri: /registry/enums/graph/order/tags/values/vip
spec:
  value:
    label:
      default: VIP Customer
      sv-SE: VIP-kund
    hue: 280
    setKey: customer

Enum Definitions

For enum values shared across multiple fields, consider using enum definitions instead. Local values at this path can still be used alongside an enum definition to override labels/hues for a specific field or add field-specific values.

© 2024 Hantera AB. All rights reserved.