Layout - Expanding/Collapsing Cells

How reproduce, on a button click for example,
myLayout.cells(“a”).expand();
or
myLayout.cells(“a”).collapse();
in Suite 6.0?
Thanks,
Cristina

Please, try to use:

layout.cell(id).config.collapsed=true 
layout.cell(id).paint()

for the cell collapsing
and

layout.cell(id).config.collapsed=false
layout.cell(id).paint()

for the cell expanding

Thanks a lot! Cristina