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

21 lines
368 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;
height: number | null = null;
addCell(cell: TableCell) {
2020-05-15 09:51:45 +03:00
if (cell.hasNumberings) {
this.hasNumberings = true;
}
this.cells.push(cell);
return this;
}
rowHeight(h: number) {
this.height = h;
return this;
}
}