Options
All
  • Public
  • Public/Protected
  • All
Menu

docx

Index

Enumerations

Classes

Interfaces

Type aliases

Variables

Functions

Object literals

Type aliases

AlignmentOptions

AlignmentOptions: "start" | "end" | "center" | "both" | "distribute" | "left" | "right"

AttributeMap

AttributeMap: object

Type declaration

RelationshipType

RelationshipType: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/image" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/settings" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/fontTable" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/webSettings" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/numbering" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/header" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/footer" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument" | "http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/footnotes"

SectionPropertiesOptions

TabValue

TabValue: "left" | "right" | "center" | "bar" | "clear" | "decimal" | "end" | "num" | "start"

TargetModeType

TargetModeType: "External"

Variables

Const WORKAROUND2

WORKAROUND2: "" = ""
ignore

Const WORKAROUND3

WORKAROUND3: "" = ""
ignore

Functions

convertToXmlComponent

  • Converts the given xml element (in json format) into XmlComponent. Note: If element is array, them it will return ImportedXmlComponent[]. Example for given: element = [ { w:t: "val 1"}, { w:t: "val 2"} ] will return [ ImportedXmlComponent { rootKey: "w:t", root: [ "val 1" ]}, ImportedXmlComponent { rootKey: "w:t", root: [ "val 2" ]} ]

    Parameters

    • elementName: string

      name (rootKey) of the XmlComponent

    • element: any

      the xml element in json presentation

    Returns ImportedXmlComponent | ImportedXmlComponent[]

Object literals

Const parseOptions

parseOptions: object

attrNodeName

attrNodeName: string = "_attr"

attributeNamePrefix

attributeNamePrefix: string = ""

ignoreAttributes

ignoreAttributes: boolean = false

Generated using TypeDoc