I've been messing around with the tree functionality in regular-table. The existing tree support is based on row_pivots, which is cumbersome for specifying a generic tree whose complete structure you don't necessarily know in advance. I think(?) there may also be at least some trees that you can't specify in terms of row pivots.
So far my best idea is that if a row can be expanded, the user's data model should add a / to the end of its final path element, and also supply expand and collapse functions (as per _on_toggle).
I'm working on a branch right now to implement the above, but am absolutely open to more clever suggestions.
I've been messing around with the tree functionality in regular-table. The existing tree support is based on
row_pivots, which is cumbersome for specifying a generic tree whose complete structure you don't necessarily know in advance. I think(?) there may also be at least some trees that you can't specify in terms of row pivots.So far my best idea is that if a row can be expanded, the user's data model should add a
/to the end of its final path element, and also supplyexpandandcollapsefunctions (as per_on_toggle).I'm working on a branch right now to implement the above, but am absolutely open to more clever suggestions.