src/lib/myuw-app-bar/demo1.js
/**
        *   Assemble the HTML to be used in the top bar <h1> tag based on
        *   whether the requisite properties exist.
        *   @return {String} htmlString A string for the HTML to add to the shadow DOM
        */
Assemble the HTML to be used in the top bar  tag based on
whether the requisite properties exist.
@return {String} htmlString A string for the HTML to add to the shadow DOM
Assemble the HTML to be used in the top bar tag based on whether the requisite properties exist . @return { String } htmlString A string for the HTML to add to the shadow DOM
buildTitleString() {
            var htmlString = '';
            if (this['theme-name'] !== null) {
                if (this['theme-url'] !== null) {
                    htmlString += '<a href="' + this['theme-url'] + '" target="_self" aria-label="' + this['theme-name'] + '">'
                        + this['theme-name'] + '</a>';
                } else {
                    htmlString += '<span>' + this['theme-name'] + '</span>';
                }
            }
            if (this['app-name'] !== null) {
                htmlString += '&nbsp;';
                if (this['app-url'] !== null) {
                    htmlString += '<a href="' + this['app-url'] + '" target="_self" aria-label="' + this['app-name'] + '">'
                        + this['app-name'] + '</a>';
                } else {
                    htmlString += '<span tabindex="0" aria-label="' + this['app-name'] + '">' + this['app-name'] + '</span>';
                }
            }
            return htmlString;
        }
buildTitleString ( ) { var htmlString = '' ; if ( this [ 'theme-name' ] !== null ) { if ( this [ 'theme-url' ] !== null ) { htmlString += '<a href="' + this [ 'theme-url' ] + '" target="_self" aria-label="' + this [ 'theme-name' ] + '">' + this [ 'theme-name' ] + '</a>' ; } else { htmlString += '<span>' + this [ 'theme-name' ] + '</span>' ; } } if ( this [ 'app-name' ] !== null ) { htmlString += '&nbsp;' ; if ( this [ 'app-url' ] !== null ) { htmlString += '<a href="' + this [ 'app-url' ] + '" target="_self" aria-label="' + this [ 'app-name' ] + '">' + this [ 'app-name' ] + '</a>' ; } else { htmlString += '<span tabindex="0" aria-label="' + this [ 'app-name' ] + '">' + this [ 'app-name' ] + '</span>' ; } } return htmlString ; }
Assemble the HTML to be used in the top bar <h1> tag based on
   whether the requisite properties exist.
Assemble the HTML to be used in the top bar <h1 > tag based on whether the requisite properties exist .