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.
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); } } }