INNER CODE UNIT · JavaScript

prettyInputBox

mdziekon/UniEngine · js/_libCommon.js:53

const prettyInputBox = (jqThis) => {
    if (!AllowPrettyInputBox) {
        return jqThis;
    }

    return jqThis.each(function () {
        const normalizedValue = removeNonDigit($(this).val());
        const formattedValue = addDots(normalizedValue);
        $(this).val(formattedValue);
    });
};

const isNonEmptyValue = (currentValue, params) => {
    const isZeroAllowed = (params || {}).isZeroAllowed || false;
    const valueComparator = (
        isZeroAllowed ?
            (value) => value >= 0 :
            (value) => value > 0

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…