Roku Developer Program

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

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://georgejecook.github.io/
https://linkedin.com/in/georgejecook/
Roku developers slack group (https://join.slack.com/t/rokudevelopers/shared_invite/zt-4vw7rg6v-NH46oY7hTktpRIBM_zGvwA) : georgejecook

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

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 8

Re: correct way to get the node name

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

Thanks for responding though.
George Cook
https://georgejecook.github.io/
https://linkedin.com/in/georgejecook/
Roku developers slack group (https://join.slack.com/t/rokudevelopers/shared_invite/zt-4vw7rg6v-NH46oY7hTktpRIBM_zGvwA) : georgejecook

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