src/js/painter/controller.js
function(address, value) {
        var columnModel = this.columnModel.getColumnModel(address.columnName);

        if (_.isString(value)) {
            value = $.trim(value);
        }
        if (columnModel.validation && columnModel.validation.dataType === 'number') {
            value = convertToNumber(value);
        }
        if (columnModel.name === '_button') {
            if (value) {
                this.dataModel.check(address.rowKey);
            } else {
                this.dataModel.uncheck(address.rowKey);
            }
        } else {
            this.dataModel.setValue(address.rowKey, address.columnName, value);
        }
    }
function(address, value) {
        var columnModel = this.columnModel.getColumnModel(address.columnName);

        if (_.isString(value)) {
            value = $.trim(value);
        }
        if (columnModel.validation && columnModel.validation.dataType === 'number') {
            value = convertToNumber(value);
        }
        if (columnModel.name === '_button') {
            if (value) {
                this.dataModel.check(address.rowKey);
            } else {
                this.dataModel.uncheck(address.rowKey);
            }
        } else {
            this.dataModel.setValue(address.rowKey, address.columnName, value);
        }
    }
function ( address , value ) { var columnModel = this . columnModel . getColumnModel ( address . columnName ) ; if ( _ . isString ( value ) ) { value = $ . trim ( value ) ; } if ( columnModel . validation && columnModel . validation . dataType === 'number' ) { value = convertToNumber ( value ) ; } if ( columnModel . name === '_button' ) { if ( value ) { this . dataModel . check ( address . rowKey ) ; } else { this . dataModel . uncheck ( address . rowKey ) ; } } else { this . dataModel . setValue ( address . rowKey , address . columnName , value ) ; } }
Sets the value of the given cell.
@param {{rowKey:String, columnName:String}} address - cell address
@param {(Number|String|Boolean)} value - value
Sets the value of the given cell .