Example:
lastItem = myList.count() - 1
myList.jumpToItem = lastItem
mylist = m.top.findnode("moviemenucontent")
count = mylist.getChildCount()
"joetesta" wrote:
https://sdkdocs.roku.com/display/sdkdoc/LabelList
Maybe you figured this out already?
use getChildCount() on the list.
So in the example from the LabelList page, you should be able to do something likemylist = m.top.findnode("moviemenucontent")
count = mylist.getChildCount()
"adrianc1982" wrote:
I havent figured it out, i will give it a try tonight and post my results. I also checked the sdk page for labelist and no, getchildcount() is not there, so maybe it should be added. thank you a lot for your kind response.
"EnTerr" wrote:"adrianc1982" wrote:
I havent figured it out, i will give it a try tonight and post my results. I also checked the sdk page for labelist and no, getchildcount() is not there, so maybe it should be added. thank you a lot for your kind response.
getChildCount() comes from https://sdkdocs.roku.com/display/sdkdoc ... deChildren - which every Node supports.
All UI nodes are subclasses of Group, which is a subclass of Node, also known as roSgNode. The closest thing to a class diagram for RSG i have seen is actually... another question, https://forums.roku.com/viewtopic.php?f=34&t=95613 . Looking at that - only partial! - sketch, LabelList can do everything that ArrayGrid, Group and Node can do.
Using getChildCount() would be a bit of a hack, since it will count any direct children of LabelList - but as long as you haven't added extra dough there, it should do the job.
We’re upgrading Roku Community to bring you a faster, more mobile-friendly experience. You may notice limited functionality or read-only access during this time. You will not be able to log in or post new comments or kudos during this time. Read more here.
Planned Downtime:
Community will be unavailable for up to 24–48 hours during the upgrade window during the week of May 12 and you may notice reduced functionality.
In the meantime, for additional assistance, visit our Support Site.
Thanks for your patience — we’re excited to share what’s next!