Accordion programaticly expand or collapse

I have tree part accordion and each one of them has a list inside. I want to collapse the accordion when user selects an item from the list. In api referance I couldn’t find expand or collapse methods or something like that.

If you have something like

type:"wide", view:"accordion", width:200, id:"vertical_accordion", rows:[ { header:"Cell A",id:"cell_a" }, { header:"Cell B",id:"cell_b" }, { header:"Cell C",id:"cell_c" } ]

You can use API calls as

$$('cell_a').collapse();
$$('cell_b').expand();

Basically, each cell inside an accordion has collapse and expand method.

Documentation will be updated in the neareast time.

Thanks a lot.