UNPKG

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

22 lines (21 loc) 648 B
var s = Object.defineProperty; var c = (t, e, o) => e in t ? s(t, e, { enumerable: !0, configurable: !0, writable: !0, value: o }) : t[e] = o; var a = (t, e, o) => c(t, typeof e != "symbol" ? e + "" : e, o); import { TableCell as d } from "../components/TableCell.mjs"; import { createTh as n } from "../../../utils/helpers.mjs"; class b { constructor(e) { a(this, "table"); this.table = e; } execute() { const e = this.table.createTHead().insertRow(), o = this.table.rows[0].cells.length; for (let l = 0; l < o; l++) { const r = n(); e.appendChild(r), new d(r); } } } export { b as AddHeaderRowCommand };