Roku Developer Program

Developers and content creators—a complete solution for growing an audience directly.
cancel
Showing results for 
Search instead for 
Did you mean: 
georgejecook
Level 7

correct way to get the node name

how is one meant to access this? I get a crash when I do m.top.name
George Cook
https://linkedin.com/in/georgejecook/
Roku developers slack group (http://tiny.cc/nrdf0y) : georgejecook

Contact me on roku developer slack group, or via pm to discuss consultancy/work opportunities/rooibos unit testing framework
0 Kudos
2 Replies
Veeta
Level 7

Re: correct way to get the node name

The "id" of the node, usually set first in the XML, is available at m.top.id.  

If you mean the "type", such as RowList, ButtonGroup, use m.top.subtype()
0 Kudos
georgejecook
Level 7

Re: correct way to get the node name

Thanks, I should've updated this question as I'd already worked this out Smiley Happy

Thanks for responding though.
George Cook
https://linkedin.com/in/georgejecook/
Roku developers slack group (http://tiny.cc/nrdf0y) : georgejecook

Contact me on roku developer slack group, or via pm to discuss consultancy/work opportunities/rooibos unit testing framework
0 Kudos