UNPKG

docx

Version:

Easily generate .docx files with JS/TS with a nice declarative API. Works for Node and on the Browser.

21 lines (20 loc) 1.1 kB
import { VerticalAlign } from '../../vertical-align'; import { IgnoreIfEmptyXmlComponent } from '../../xml-components'; import { IShadingAttributesProperties } from "../../shading"; import { ITableCellMarginOptions } from "../table-properties/table-cell-margin"; import { ITableWidthProperties } from "../table-width"; import { ITableCellBorders, TextDirection, VerticalMergeType } from "./table-cell-components"; export interface ITableCellPropertiesOptions { readonly shading?: IShadingAttributesProperties; readonly margins?: ITableCellMarginOptions; readonly verticalAlign?: (typeof VerticalAlign)[keyof typeof VerticalAlign]; readonly textDirection?: (typeof TextDirection)[keyof typeof TextDirection]; readonly verticalMerge?: (typeof VerticalMergeType)[keyof typeof VerticalMergeType]; readonly width?: ITableWidthProperties; readonly columnSpan?: number; readonly rowSpan?: number; readonly borders?: ITableCellBorders; } export declare class TableCellProperties extends IgnoreIfEmptyXmlComponent { constructor(options: ITableCellPropertiesOptions); }