Pivot get nested rows

Hi there guys. How can I iterate over child rows of some parent row? For example in this: https://webix.com/demos/pivot.html
how can get all the countries under “Republic”?
Thanks

You can access the table part of the pivot

const table = $$("pivot").$$("data");

and use data.eachChild API to iterate all child items.

https://snippet.webix.com/axlwcdrz