CirclonGroup / angular-tree-component

A simple yet powerful tree component for Angular (>=2)
https://angular2-tree.readme.io/docs
MIT License
1.1k stars 492 forks source link

how to hide tree-node-expander when there are no children #812

Closed grimace closed 4 years ago

grimace commented 4 years ago

PLEASE READ CAREFULLY!

Just a question about how I can NOT show the node expander when there is no children for a node.

Reproduce

Please reproduce here if reporting a bug, or requesting help: https://stackblitz.com/edit/angular-wxansn

Additional Info

Use the Slack Channel

The fastest way to get an answer is via the slack channel: https://angular-tree-component.herokuapp.com/

You will also get updates on releases, bugfixes and other announcements.

Search Docs First

Please look for an answer in the docs before submitting an issue: angular2-tree.readme.io.

grimace commented 4 years ago

NM, my issue was that I was passing a children array that was empty, when I null it out the tree-node-expanders go away.