vue-tables-2
Version:
Vue.js 2 grid components
19 lines (17 loc) • 431 B
JavaScript
;
module.exports = function _setEditingCell(row, column) {
return function (editing) {
var _this = this;
if (editing) {
this.editing.push({
id: row[this.opts.uniqueKey],
column: column,
originalValue: row[column]
});
} else {
this.editing = this.editing.filter(function (e) {
return e.id !== row[_this.opts.uniqueKey];
});
}
}.bind(this);
};