docx-rs/docx-wasm/js/table-row.ts

15 lines
261 B
TypeScript
Raw Normal View History

import { TableCell } from "./table-cell";
export class TableRow {
cells: TableCell[] = [];
2020-05-15 09:51:45 +03:00
hasNumberings = false;
addCell(cell: TableCell) {
2020-05-15 09:51:45 +03:00
if (cell.hasNumberings) {
this.hasNumberings = true;
}
this.cells.push(cell);
this;
}
}