Button Matrix~
obj:btnmatrix
Property | Value | Default | Description |
---|---|---|---|
options | json array | "Text" | Json array of strings where each element is the label of a button. Use "\n" for a new line of buttons |
align | string | center |
Text alignment: left , center , right |
toggle | bool | false | All buttons behave as toggle buttons or normal buttons |
one_check | bool | false | Allow only one button to be checked (toggled) at once |
val | int8 | 0 | The number of the active button, starting at 0. In conjunction with toggle and one_check set it to -1 to deactivate all buttons |
The styling properties apply to all buttons in the matrix.
To change the color of a single label you can prefix the text with a #RRGGBB
hexadecimal color code and close with a single hash #
tag.
Example jsonl
1 |
|