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
testinz
Posts: 168
Registered: ‎09-03-2012

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;

                    }

Please use plain text.
Developer
peter9477
Posts: 6,447
Registered: ‎12-08-2010
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!
Please use plain text.
Developer
testinz
Posts: 168
Registered: ‎09-03-2012

Re: Checking size of listview or datagroupmodel in QML?

Thanks Peter!
Please use plain text.