How can I get the currently expanded items in an accordion?

Hi everyone, is there any way to retrieve a list of the currently expanded items in an accordion? I’ve looked through the documentation and have had trouble figuring it out, if someone could point me in the right direction I’d really appreciate it.

Thanks!

You can use list of child cells by

var cells = acc.getChildViews();

after that you can iterate through cells and check which of them are expanded

for (var i=0; i<cells.length; i++)
  if (!cells[i].config.collapsed)  cell_is_expanded(cell);

This worked perfectly, thanks!