• 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.

Change App Title On Launch

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

  • Change App Title On Launch

    Question received that others may benefit from:

    Is there any way we can change the title of the app when it's launched in the Desktop portal?

  • #2
    Yes, you can override the title in the beforelaunchapp method in the Hook.js.

    Example:
    Code:
                    beforelaunchapp      : function(app, additional){
                        var overrideAppIds = [95, 154];
    
                        // before we launch the application lets check if we need to override the title
                        //  based on its appId
                        //
                        if (Valence.isEmpty(additional.options)) {
                            additional.options = {};
                        }
    
                        if (Valence.isEmpty(additional.options.title) && overrideAppIds.indexOf(app.get('appId')) !== -1) {
                            // override title
                            //
                            additional.options.title = app.get('name') + ' OVR';
                        }
                    },
    Last edited by robert.swanson; 06-08-2021, 07:29 PM.

    Comment

    Working...
    X