OptionLabel

@Target(allowedTargets = [AnnotationTarget.FIELD])
annotation class OptionLabel(val label: String)(source)

The label of a constant of an enum that an OptionParameter chooses from, as user interfaces show it; constants without one are shown by their names in lowercase, with spaces for underscores, see Parameter.optionLabels

enum class BlendMode { @OptionLabel("soft light (W3C)") SOFT_LIGHT, MULTIPLY }

Properties

Link copied to clipboard