ChoiceAttribute
The choice attribute is an object that extends AttributeBase and contains the following properties:
Property | Description | Required |
---|---|---|
type | 'choice' | Yes |
string | A boolean value that indicates whether the attribute is a string. | No |
number | A boolean value that indicates whether the attribute is a number. | No |
options | The options for the attribute. | Yes |
Note: The
string
andnumber
properties are mutually exclusive. One of them must be set totrue
.
Option
Property | Description | Required |
---|---|---|
label | The label of the option. | Yes |
value | The value of the option. | Yes |
color | The color of the option. | No |