src/aria/core/TplClassLoader.js
function (classes, printOptions) {
                classes = classes.replace(/(\s|^)\s*xPrint\w*/g, '');
                if (printOptions == "adaptX") {
                    classes += " xPrintAdaptX";
                } else if (printOptions == "adaptY") {
                    classes += " xPrintAdaptY";
                } else if (printOptions == "adaptXY") {
                    classes += " xPrintAdaptX xPrintAdaptY";
                } else if (printOptions == "hidden") {
                    classes += " xPrintHide";
                }
                return classes;
            }
function (classes, printOptions) {
                classes = classes.replace(/(\s|^)\s*xPrint\w*/g, '');
                if (printOptions == "adaptX") {
                    classes += " xPrintAdaptX";
                } else if (printOptions == "adaptY") {
                    classes += " xPrintAdaptY";
                } else if (printOptions == "adaptXY") {
                    classes += " xPrintAdaptX xPrintAdaptY";
                } else if (printOptions == "hidden") {
                    classes += " xPrintHide";
                }
                return classes;
            }
function ( classes , printOptions ) { classes = classes . replace ( / (\s|^)\s*xPrint\w* / g , '' ) ; if ( printOptions == "adaptX" ) { classes += " xPrintAdaptX" ; } else if ( printOptions == "adaptY" ) { classes += " xPrintAdaptY" ; } else if ( printOptions == "adaptXY" ) { classes += " xPrintAdaptX xPrintAdaptY" ; } else if ( printOptions == "hidden" ) { classes += " xPrintHide" ; } return classes ; }
Convert print options into a set of CSS classes and add them to the provided set of classes.
@param {String} classes Set of classes separated by a space (e.g. className property). If print options
CSS classes are already present in this string, they will be removed.
@param {aria.templates.CfgBeans:PrintOptions} printOptions print options
@return {String} the updated set of classes.
Convert print options into a set of CSS classes and add them to the provided set of classes .