Francesco,
This may not be exactly what you are after but this is what I have. You can added a folded property to one or more widget in a group. and with a couple of small code changes in the theme code you can start one or more widgets in a group as minimized.
In the themes\[chosen theme]\panels\FoldablePanel\Panel.js (line 8 added):
createFrame: function(widgetConfig) {
var frame;
if (this.config.widgets && this.config.widgets.length === 1 || !this.config.widgets) {
frame = new BaseWidgetFrame();
} else {
frame = new FoldableWidgetFrame({
label: widgetConfig.label,
folded: widgetConfig.folded,
widgetManager: this.widgetManager
});
FoldableDijit.js (added line 23-25):
startup: function() {
this.inherited(arguments);
html.setStyle(this.titleNode, {
width: this.width,
height: this.titleHeight + 'px'
});
html.setStyle(this.containerNode, {
top: this.titleHeight + 'px'
});
html.setStyle(this.titleLabelNode, {
lineHeight: this.titleHeight + 'px'
});
if (this.label) {
this.setTitleLabel(this.label);
}
this.foldEnable = true;
this.own(on(this.titleNode, 'click', lang.hitch(this, function(){
this.onFoldableNodeClick();
})));
if(this.folded){
html.addClass(this.foldableNode, 'folded');
}
},
In the apps main config.json (added line 11):
"groups": [
{
"label": "New group",
"widgets": [
{
"uri": "widgets/LayerList/Widget",
"version": "2.5",
"id": "widgets_LayerList_Widget_18",
"name": "LayerList",
"index": 1,
"folded": true
},
{
"uri": "widgets/Legend/Widget",
"version": "2.5",
"id": "widgets_Legend_Widget_17",
"name": "Legend",
"index": 0
}
],