Select to view content in your preferred language

Edit widget

901
3
Jump to solution
03-28-2017 06:57 PM
GregRieck
Frequent Contributor

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.

0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Emeritus

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,
  ....
) {

View solution in original post

3 Replies
RobertScheitlin__GISP
MVP Emeritus

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,
  ....
) {
GregRieck
Frequent Contributor

Thank You Robert as always the man with the answers.

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Don't forget to mark this question as answered by clicking on the "Correct Answer" link on the reply that answered your question.

0 Kudos