docx
    Preparing search index...

    Class NextAttributeComponent<T>

    Next-generation attribute component with explicit key-value pairs.

    NextAttributeComponent provides an alternative approach to attributes where each property explicitly specifies both its XML attribute name and value. This gives more control but is more verbose than XmlAttributeComponent.

    new NextAttributeComponent({
    fontSize: { key: "w:sz", value: 24 },
    bold: { key: "w:b", value: true }
    });
    // Generates: _attr: { "w:sz": 24, "w:b": true }

    Type Parameters

    Hierarchy (View Summary)

    Index

    Constructors

    Methods

    Constructors

    Methods