mixin

EnumItem

@Js
const mixin EnumItem : Item

EnumItem is one key of an EnumItems. It is an Item so its display text, icon, color, and meta work anywhere items are rendered.

methods doc

Documentation for this key or null

key

The enumerated key

doc abstract Str? doc()

Documentation for this key or null. Never inherited: an item without its own doc reports null rather than its enum type's.

key abstract Str key()

The enumerated key. This is the value stored in a record, and may contain arbitrary characters when mapping to an external enumeration - use this, not id, as the value.

Haxall 4.0.7 ∙ 27-Oct-2026 09:10 EDT