UNPKG

tabulator-tables

Version:

Interactive table generation JavaScript library

25 lines (20 loc) 746 B
export default { cellEdit: function(action){ action.component.setValueProcessData(action.data.newValue); action.component.cellRendered(); }, rowAdd: function(action){ var newRow = this.table.rowManager.addRowActual(action.data.data, action.data.pos, action.data.index); if(this.table.options.groupBy && this.table.modExists("groupRows")){ this.table.modules.groupRows.updateGroupRows(true); } this._rebindRow(action.component, newRow); }, rowDelete:function(action){ action.component.deleteActual(); }, rowMove: function(action){ this.table.rowManager.moveRowActual(action.component, this.table.rowManager.rows[action.data.posTo], action.data.after); this.table.rowManager.redraw(); }, };