components_node/functions-generic.js
/**
     * Return the label in the right terminal.
     * @static
     * @param {object} objAppLabels 
     * @param {string} labelName 
     * @returns {string}
     * @example
     * SyncSystemNS.FunctionsGeneric.appLabelsGet(gSystemConfig.configLanguageBackend.appLabels, "labelName")
     */
Return the label in the right terminal.
Return the label in the right terminal .
static appLabelsGet(objAppLabels, labelName)
    {
        var strReturn = "";
        if(labelName != null && labelName != "" && (typeof labelName !== 'undefined') 
            && objAppLabels != null && objAppLabels != "" && (typeof objAppLabels !== 'undefined'))
        {
            if(objAppLabels.hasOwnProperty(labelName)) 
            {
                strReturn = objAppLabels[labelName];
                strReturn = strReturn.replace(/(?:\r\n|\r|\n)/g, "<br />");
            }
        }else{
            strReturn = "";
        }
        return strReturn;
    }
static appLabelsGet ( objAppLabels , labelName ) { var strReturn = "" ; if ( labelName != null && labelName != "" && ( typeof labelName !== 'undefined' ) && objAppLabels != null && objAppLabels != "" && ( typeof objAppLabels !== 'undefined' ) ) { if ( objAppLabels . hasOwnProperty ( labelName ) ) { strReturn = objAppLabels [ labelName ] ; strReturn = strReturn . replace ( / (?:\r\n|\r|\n) / g , "<br />" ) ; } } else { strReturn = "" ; } return strReturn ; }
Return the label in the right terminal.
Return the label in the right terminal .
//Variables. //---------------------- //---------------------- //check if object as property //strReturn = "test app label"; //debug. //Debug. //strReturn = objAppLabels;