Select to view content in your preferred language

WAB minimizePanel

2887
7
10-26-2015 01:43 AM
OndrejFialík
Deactivated User

Hello,

i have a problem with minimizePanel. WAB 1.1

If i run PanelManager.getInstance().minimizePanel(this.id + '_panel'); nothing will happen. Code PanelManager.getInstance().closePanel(this.id + '_panel'); is Ok (Panel closes).

Thank you for your ideas

Ondra

0 Kudos
7 Replies
RobertScheitlin__GISP
MVP Emeritus

Ondra,

   Some themes do not have a minimized state for their panels. What theme are you working with?

0 Kudos
OndrejFialík
Deactivated User

TabTheme

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Ondra,

   So are you trying to minimize the sidebar controller or some on screen widget?

0 Kudos
OndrejFialík
Deactivated User

sceen widget

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Ondra,

  There is no Minimize state for a onScreen widget in the tab theme. You will notice that there is only a close button on the widgets UI when using the tab theme or when you are using the theme on a mobile device the will be a maximize button that calls this code:

_onMaxBtnClicked: function(evt) {
        evt.stopPropagation();
        var posInfo = this._getPositionInfo();
        if (posInfo.isRunInMobile) {
          if (this.windowState === 'maximized') {
            this.panelManager.normalizePanel(this);
          } else {
            this.panelManager.maximizePanel(this);
          }
          this._setMobilePosition();
        }
      },
0 Kudos
OndrejFialík
Deactivated User

I use desktop ... some idea how add minimize fuction to TabTheme?

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Ondra,

   Nope.

0 Kudos