Add table row height

This commit is contained in:
fmuscolino
2019-06-25 12:02:53 +02:00
parent 0c79c0ac83
commit 2d4412ce51
6 changed files with 76 additions and 1 deletions

View File

@ -1,3 +1,4 @@
import { HeightRule, TableRowHeight } from "file/table/table-row/table-row-height";
import { IgnoreIfEmptyXmlComponent, XmlAttributeComponent, XmlComponent } from "file/xml-components";
export class TableRowProperties extends IgnoreIfEmptyXmlComponent {
@ -16,6 +17,12 @@ export class TableRowProperties extends IgnoreIfEmptyXmlComponent {
return this;
}
public setHeight(height: number, rule: HeightRule): TableRowProperties {
this.root.push(new TableRowHeight(height, rule));
return this;
}
}
class CantSplitAttributes extends XmlAttributeComponent<{ readonly val: boolean }> {