onlyOnHover property
Whether the button should be visible only when the node is hovered. When set to true, the button is hidden for nodes, which are not collapsed, and shown for the collapsed ones.
API Docs: https://api.highcharts.com/highcharts/series.treegraph.collapseButton.onlyOnHover
Implementation
bool? onlyOnHover;