on-codemerge
Version:
A WYSIWYG editor for on-codemerge is a user-friendly interface that allows users to edit and view their code in real time, exactly as it will appear in the final product
21 lines (20 loc) • 649 B
JavaScript
var n = Object.defineProperty;
var c = (l, e, o) => e in l ? n(l, e, { enumerable: !0, configurable: !0, writable: !0, value: o }) : l[e] = o;
var t = (l, e, o) => c(l, typeof e != "symbol" ? e + "" : e, o);
import { TableOperations as m } from "../services/TableOperations.mjs";
class i {
constructor(e, o) {
t(this, "table");
t(this, "columnIndex");
t(this, "cellsHTML", []);
this.table = e, this.columnIndex = o.cellIndex;
for (const s of e.rows)
this.cellsHTML.push(s.cells[this.columnIndex].outerHTML);
}
execute() {
m.deleteColumn(this.table, this.columnIndex);
}
}
export {
i as DeleteColumnCommand
};