TreeTable bug?

It appears that TreeTable is not working. In the doc page:

it correctly does not have expansion arrowheads to the left of Coffee, Tea, Bread and Cake. However when I run the code locally I get arrows indicating that there are child items under those, but there are none. Thanks!


try setChildrenAllowed(itemId, false) for the leaf nodes.


Thanks, that fixed it. Maybe the example code can be updated too.

Yeah, for sure.