Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Web and WebWorks Development

Posts: 23
Registered: ‎01-01-2013
My Device: BlackBerry Dev Alpha B
My Carrier: airtel

How to create list with checkboxes with each list item in WebWorks app ?



I need to create a list of items with multi selection feature in WebWorks application

is it possible to customise the image-list provided by bbUIto have the checkbox against each item ?

if not image-list then is there any other way we can achieve this ?




Posts: 1,382
Registered: ‎07-02-2009
My Device: BlackBerry Bold 9900
My Carrier: Bell

Re: How to create list with checkboxes with each list item in WebWorks app ?

I don't believe the Image List feature of bbUI has a checkbox option. You can do arrow lists or button lists however:





what if you placed a checkbox control within the list item itself, like this?


<div data-bb-type="image-list" data-bb-style="addbuttons">
      <div data-bb-type="item" data-bb-img="1.jpg" onbtnclick="addItem()" data-bb-title="Title">
	      <input type="checkbox" checked="true" value="one" onchange="doSomething(this)" />
      <div data-bb-type="item" data-bb-img="2.jpg" onbtnclick="addItem()" data-bb-title="Title">
      	<input type="checkbox" value="two" onchange="doSomething(this)" />


Follow me on Twitter: @n_adam_stanley
Your app doesn't work? Use BlackBerry remote web inspector to find out why.