I want to collapse and expand my TOC widget on a button click event? Is it possible with a single command or need to update collapsed attribute to true/false on each item in the layerInfo