Reputation: 2604
I am looking about a kind of Treeview ( could be something which fits aswell ) or approach on creating such.
The main idea is as follow : on each node, which is end-node ( it is not a parent to anything ) must have a different renderer from the rest of the nodes - a few buttons mostly, arranged vertically. Which means that these end-nodes shall have different height from the rest aswell..
Upvotes: 0
Views: 397
Reputation: 12847
Easy enough as long as you have hierarchical data (meaning that there's a property of 'children' in each object), you just need to set a custom item renderer which it checks if the data's 'children' property is bigger than 0.
If bigger than zero, change the state within the item renderer to 'node' and if zero, change state to 'leaf'. And make sure you set variableRowHeight
to true on your Tree.
Upvotes: 1