Hierarchical iosmobiletable

Hi, fairly new to Xojo and i trying to make an iOS app, i am wanting to make a Hierarchical iosmobiletable so that when the user clicks on the section title that title ‘closes’ making the whole table easier to navigate as more sections/ row are added. However i can find nothing on this anywhere, anyone got any pointers/ examples they can help me with?

I did that in this app https://packr.app

It isn’t really the header that is clickable but the first row in each section.

In your datasource logic, define a property such as “expanded” that will let the datasource know if that section has one row to display (not expanded) or several rows (expanded).