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
Developer
Posts: 188
Registered: ‎09-03-2012
My Device: Blackberry 10

Checking size of listview or datagroupmodel in QML?

Is there a way to check the size of listview or datagroupmodel in QML in order to set visible property?

 

e..g: visible {

                     if (x.size() > 0 ) {

                               true;

                    } else {

                             false;

                    }

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

Re: Checking size of listview or datagroupmodel in QML?

https://developer.blackberry.com/cascades/reference/bb__cascades__groupdatamodel.html#size

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!
Developer
Posts: 188
Registered: ‎09-03-2012
My Device: Blackberry 10

Re: Checking size of listview or datagroupmodel in QML?

Thanks Peter!