Skip to main content

ChoicesAttribute

The choices attribute is an object that extends AttributeBase and contains the following properties:

PropertyDescriptionRequired
type'choices'Yes
stringA boolean value that indicates whether the attribute is a string.No
numberA boolean value that indicates whether the attribute is a number.No
optionsThe options for the attribute.Yes

Note: The string and number properties are mutually exclusive. One of them must be set to true.

Option​

PropertyDescriptionRequired
labelThe label of the option.Yes
valueThe value of the option.Yes
colorThe color of the option.No