docx
Version:
Easily generate .docx files with JS/TS with a nice declarative API. Works for Node and on the Browser.
17 lines (16 loc) • 621 B
TypeScript
import { IgnoreIfEmptyXmlComponent } from "../../../file/xml-components";
import { WidthType } from "../table-width";
export interface ITableCellMarginOptions {
readonly marginUnitType?: WidthType;
readonly top?: number;
readonly bottom?: number;
readonly left?: number;
readonly right?: number;
}
export declare enum TableCellMarginElementType {
TABLE = "w:tblCellMar",
TABLE_CELL = "w:tcMar"
}
export declare class TableCellMargin extends IgnoreIfEmptyXmlComponent {
constructor(type: TableCellMarginElementType, { marginUnitType, top, left, bottom, right }: ITableCellMarginOptions);
}