BookstoreWeb/Scripts/ChromeLoader.js
//Function to prepare the options and render the control
Function to prepare the options and render the control
Function to prepare the options and render the control
function renderChrome() {
    var options = {
        "appIconUrl": "appicon.png",
        "appTitle": chromeAppTitle,
        "appHelpPageUrl": "Help.html?"
            + document.URL.split("?")[1],
        "onCssLoaded": "chromeLoaded()",
        "settingsLinks": [
            {
                "linkUrl": "Account.html?"
                    + document.URL.split("?")[1],
                "displayName": chromeAccountSettings
            },
            {
                "linkUrl": "Contact.html?"
                    + document.URL.split("?")[1],
                "displayName": chromeContact
            }
        ]
    };
    var nav = new SP.UI.Controls.Navigation(
                            "chrome_ctrl_placeholder",
                            options
                        );
    nav.setVisible(true);
}
function renderChrome ( ) { var options = { "appIconUrl" : "appicon.png" , "appTitle" : chromeAppTitle , "appHelpPageUrl" : "Help.html?" + document . URL . split ( "?" ) [ 1 ] , "onCssLoaded" : "chromeLoaded()" , "settingsLinks" : [ { "linkUrl" : "Account.html?" + document . URL . split ( "?" ) [ 1 ] , "displayName" : chromeAccountSettings } , { "linkUrl" : "Contact.html?" + document . URL . split ( "?" ) [ 1 ] , "displayName" : chromeContact } ] } ; var nav = new SP . UI . Controls . Navigation ( "chrome_ctrl_placeholder" , options ) ; nav . setVisible ( true ) ; }
Function to prepare the options and render the control
Function to prepare the options and render the control
// The Help, Account and Contact pages receive the  //   same query string parameters as the main page // The onCssLoaded event allows you to  //  specify a callback to execute when the //  chrome resources have been loaded.