Hello,
I am using the Jewelry Box theme with WAB 2.2. Is it possible to have the Edit widget appear in a closed state? I have attached an image as an example.
Solved! Go to Solution.
Greg,
In the edit Widget.js find the startup function and add this code:
setTimeout(lang.hitch(this, function(){
this.inPanel = this.getPanel();
if(this.inPanel){
if(this.appConfig.theme.name === 'JewelryBoxTheme'){
PanelManager.getInstance().minimizePanel(this.inPanel);
}
}
}), 300);
You will also need to add the require for PanelManager
define([
....
'jimu/PanelManager',
....
],
function (
....
PanelManager,
....
) {
Greg,
In the edit Widget.js find the startup function and add this code:
setTimeout(lang.hitch(this, function(){
this.inPanel = this.getPanel();
if(this.inPanel){
if(this.appConfig.theme.name === 'JewelryBoxTheme'){
PanelManager.getInstance().minimizePanel(this.inPanel);
}
}
}), 300);
You will also need to add the require for PanelManager
define([
....
'jimu/PanelManager',
....
],
function (
....
PanelManager,
....
) {
Thank You Robert as always the man with the answers.
Don't forget to mark this question as answered by clicking on the "Correct Answer" link on the reply that answered your question.