src/js/painter/controller.js
function(columnName, value) {
        var column = this.columnModel.getColumnModel(columnName);
        var maxLength = snippet.pick(column, 'editOptions', 'maxLength');

        if (maxLength > 0 && value.length > maxLength) {
            return value.substring(0, maxLength);
        }

        return value;
    }
function(columnName, value) {
        var column = this.columnModel.getColumnModel(columnName);
        var maxLength = snippet.pick(column, 'editOptions', 'maxLength');

        if (maxLength > 0 && value.length > maxLength) {
            return value.substring(0, maxLength);
        }

        return value;
    }
function ( columnName , value ) { var column = this . columnModel . getColumnModel ( columnName ) ; var maxLength = snippet . pick ( column , 'editOptions' , 'maxLength' ) ; if ( maxLength > 0 && value . length > maxLength ) { return value . substring ( 0 , maxLength ) ; } return value ; }
Check if given column has 'maxLength' property and returns the substring limited by maxLength.
@param {string} columnName - columnName
@param {string} value - value
@returns {string}
@private
Check if given column has maxLength property and returns the substring limited by maxLength .