Interface AttributeHolder

An interface for nodes that can hold attributes.

interface AttributeHolder {
    attributes: AttributeType;
    setAttribute(key, value): void;
}

Implemented by

Properties

Methods

Properties

attributes: AttributeType

The attributes of the node. This should be public, so it can be directly accessed and modified.

Methods

  • Sets the attribute of the node.

    Parameters

    • key: string

      The key of the attribute.

    • value: string

      The value of the attribute.

    Returns void

    Deprecated

    Use AttributeHolder.attributes instead.

Generated using TypeDoc