Checkbox element
As the name indicates, the <checkbox>
element renders a checkbox in BML content. This can be used to give listview items a checkbox, enabling users to check or uncheck items as needed. This functionality is useful for creating lists where selection and multi-selection actions are desired, such as in to-do lists, settings options, and forms.
Attributes
The checkbox element has only two attributes:
Attribute Name | Required | Type | Description |
---|---|---|---|
x | No | Number | Specifies the X-axis position of the checkbox. |
y | No | Number | Specifies the Y-axis position of the checkbox. |
Examples
Checkbox with position:
This code snippet places a checkbox at the coordinates (10, 20) within a BML container:
<bml>
<checkbox x="10" y="20"/>
</bml>