Select to view content in your preferred language

Jewelry Box Theme – set the Pop Up panel to be closed upon app initialization

592
1
09-23-2016 09:43 AM
AntoineBartholomew1
Deactivated User

I am having issue when I try to set the Pop Up panel to be closed upon app initialization.

I set the PopUp Confiq JSON file to say, True, for both closed at start and closed on clear, but neither of these properties seem to translate into my web app. Also inside the widgets folder, I set that manifest JSON file’s property – has config to True.

 I added the following code the Panel.Js file within my app:

[install dir]\server\apps\[app#]\themes\JewelryBoxTheme\panels\LDockablePanel\Panel.js

 startup: function(){

        var configs = this.getAllWidgetConfigs();

        if(Array.isArray(this.config.widgets)){

          configs = this.config.widgets;

        }else{

          configs = [this.config];

        }

        if(configs.length > 0){

          html.empty(this.containerNode);

        }

        setTimeout(lang.hitch(this, function(){this._onBarClick()}), 100);

 

       this.inherited(arguments);

 

     },

 

 

 

Is there something else I can try?

0 Kudos
1 Reply
AntoineBartholomew1
Deactivated User

Please disregard, I found the error in my JS coding. 

Thanks a lot for the code!

0 Kudos