docxml
Version:
TypeScript (component) library for building and parsing a DOCX file
20 lines (19 loc) • 1 kB
TypeScript
import { ParagraphProperties } from './paragraph-properties.js';
import { type TableCellProperties } from './table-cell-properties.js';
import { TableProperties } from './table-properties.js';
import { TextProperties } from './text-properties.js';
export declare type TableConditionalTypes = 'band1Horz' | 'band1Vert' | 'band2Horz' | 'band2Vert' | 'firstCol' | 'firstRow' | 'lastCol' | 'lastRow' | 'neCell' | 'nwCell' | 'seCell' | 'swCell' | 'wholeTable';
/**
* The typing for <w:tblStylePr>
*
* @see http://www.datypic.com/sc/ooxml/e-w_tblStylePr-1.html
*/
export declare type TableConditionalProperties = {
type: TableConditionalTypes;
cell?: null | TableCellProperties;
paragraph?: null | ParagraphProperties;
text?: null | TextProperties;
table?: null | TableProperties;
};
export declare function tableConditionalPropertiesFromNode(node: Node): TableConditionalProperties;
export declare function tableConditionalPropertiesToNode(tblpr: TableConditionalProperties): Node;