Choice
Where this goes: An entry in an enum’s choices.
Read the practical guide · See an illustrated example.
The tables below list configuration keys. Required means the key must be present in the config; it does not mean a labeler must answer the field.
One option of an enum.
| Key | Type | Required | Notes |
|---|---|---|---|
name |
string | yes | The literal string written to the data file when this choice is selected. min length 1 |
display |
string | TextDisplay | no | |
shortcut |
string | no | Chord that picks this choice. Fires app-wide, not only while the field has focus, so it shares one namespace with every other shortcut in the config. |
selectedStyle |
Style | no | Applied to the widget while this choice is the selected one. |