UNPKG

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) 704 B
import { IgnoreIfEmptyXmlComponent } from '../../xml-components'; import { WidthType } from '..'; export interface ITableCellMarginOptions { readonly marginUnitType?: (typeof WidthType)[keyof typeof WidthType]; readonly top?: number; readonly bottom?: number; readonly left?: number; readonly right?: number; } export declare const TableCellMarginElementType: { readonly TABLE: "w:tblCellMar"; readonly TABLE_CELL: "w:tcMar"; }; export declare class TableCellMargin extends IgnoreIfEmptyXmlComponent { constructor(type: (typeof TableCellMarginElementType)[keyof typeof TableCellMarginElementType], { marginUnitType, top, left, bottom, right }: ITableCellMarginOptions); }