is there a way to have all layers collapsed in TOC on first load?
I tried
toc = new TOC({
map: map,
layerInfos: [{
layer: layer,
title: "Title",
collapsed: true .... Nothing,
I also tried republishing the service by having all layers collapsed but the widget did not cary that behavior.