Skip to content
This repository has been archived by the owner on Oct 9, 2018. It is now read-only.

Checkboxes

tneil edited this page Jun 25, 2012 · 13 revisions

Checkboxes Checkboxes

NOTE: Activity indicators are only available in the "next" branch scheduled for release in v0.9.3

Checkboxes are quite easy to use in bbUI. Simply add regular <input> elements of type="checkbox" and you are good to go

    <input type="checkbox" checked="true" value="one" onchange="doSomething(this)" />
    <input type="checkbox" value="two" onchange="doSomething(this)" />
    <input type="checkbox" value="three" onchange="doSomething(this)" />

When using BlackBerry 10 styling this control will be displayed according to the UI specifications found on BlackBerry 10. If you are using a checkbox input on BB6/BB7/PlayBook you will get the normal "Mozilla style" checkboxes.

When BlackBerry 10 styling is applied the highlight color of the checkbox will use the bb10HighlightColor provided in the toolkit init() function.

Note that any time the checkbox changes (either checked=true/false) the onchange event will be fired.

Clone this wiki locally