Skip to content

Checkbox~

obj:checkbox

lv_checkbox

Property Value Default Description
val int16 0 1 = checked
0 = unchecked
text string "Checkbox" The label of the checkbox

Note

The checkbox object ignores the w and h attribute. These are calculated based on the font and text.

Example jsonl
1
{"page":1,"id":5,"obj":"checkbox","x":10,"y":145,"w":105,"text":" Checkbox"}

Events generated by checkbox are similar to the ones generate by the toggle buttons.