• If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Announcement

Collapse
No announcement yet.

[ANSWERED] Prevent closing of the welcome page

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • [ANSWERED] Prevent closing of the welcome page

    This was sent to support directly however wanted to post the question and answer here for others still running 3.X

    Question

    Is there a way to set the Welcome Tab with a property of closable: false? We have customized the welcome html which contains a menu and don't want the users to be able to close the tab.

    Answer

    Below is an example of the launchapp method in the Hook.js that changes the welcome tab to not be closable.

    Code:
                launchapp : function(app){
                    if (!Ext.isEmpty(app.welcome)){
                        var welcome = Ext.ComponentQuery.query('[welcome]')[0];
                        if (!Ext.isEmpty(welcome) && !Ext.isEmpty(welcome.tab)){
                            welcome.tab.setClosable(false);
                        }
                    }
                }
Working...
X