Is it possible to expand a whole level at a time without clicking on each item individually in a level?

Hi,
We would like to expand a whole level at a time without clicking on each item individually in a level. Is there a way to do this? We have a list of nearly 2000 items with only 7 levels.
Thanks

Hi @SSmith ,
Yes, this is possible, however, I would advise against changing the default behavior.
Instead, I'd advise adding another button to the box container in the box template settings, like this:
image

You can then position and style the button any way you want.

After this, you can add an onlick event to this button with some additional JS:

renderer.onBoxRendered(function(event, box, itemData){
  
  var expand = function(){
    renderer.expandNodeLevels(n, function(){
  	console.log("Nodes are expanded");
	});
  }
  let n = itemData.pochContext.boxLevelNumber;
  box.elemContainer.querySelector('#expand').onclick = expand;
});