Welcome!

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

Native Development

Reply
New Contributor
Posts: 8
Registered: ‎12-18-2012
My Device: BB 10
My Carrier: Mobilicity
Accepted Solution

What is the name of the sample code used in this listView documentation example

Hi,

Does anyone know the name for the sample app used in this example and where to download it?

https://developer.blackberry.com/cascades/documentation/ui/lists/list_view.html

I'm looking for the name of the example with the checkbox inside the list.

Thx.

 

Developer
Posts: 6,473
Registered: ‎12-08-2010
My Device: PlayBook, Z10
My Carrier: none

Re: What is the name of the sample code used in this listView documentation example

Do you mean the code that produces the ListView that shows in those docs with two sections Fruits and Vegetables, and the fruits Oranges and Bananas are checked while Apples is not? The code for it is right there below the screenshot... it's the second code sample on that page.

Peter Hansen -- (BB10 and dev-related blog posts at http://peterhansen.ca.)
Author of White Noise and Battery Guru for BB10 and for PlayBook | Get more from your battery!
New Contributor
Posts: 8
Registered: ‎12-18-2012
My Device: BB 10
My Carrier: Mobilicity

Re: What is the name of the sample code used in this listView documentation example

Thanks but I don't want just that code I'm looking for the file items.xml.

 

 // Create a ListView that uses an XML data model
        ListView {
            dataModel: XmlDataModel {
                source: "models/items.xml"
            }

 

Would like to see how it is structured.

That's why I'm asking for the sample (if one exists) so I can look at the logic.

 

Developer
Posts: 6,473
Registered: ‎12-08-2010
My Device: PlayBook, Z10
My Carrier: none

Re: What is the name of the sample code used in this listView documentation example

Search above that for the text "If you want to run these code samples yourself" and there's a link to a zip file there.

Peter Hansen -- (BB10 and dev-related blog posts at http://peterhansen.ca.)
Author of White Noise and Battery Guru for BB10 and for PlayBook | Get more from your battery!
New Contributor
Posts: 8
Registered: ‎12-18-2012
My Device: BB 10
My Carrier: Mobilicity

Re: What is the name of the sample code used in this listView documentation example

That worked.
Thanks.