docx
    Preparing search index...

    Class CellMergeAttributes

    Base class for creating XML attributes with automatic name mapping.

    XmlAttributeComponent allows you to define attributes using JavaScript-friendly property names that are automatically mapped to XML attribute names. Subclasses can define an xmlKeys map to specify the transformation.

    class MyAttributes extends XmlAttributeComponent<{ fontSize: number }> {
    protected readonly xmlKeys = { fontSize: "w:sz" };
    }

    new MyAttributes({ fontSize: 24 });
    // Generates: _attr: { "w:sz": 24 }

    Hierarchy (View Summary)

    Index

    Constructors

    Methods

    Constructors

    Methods