@servicenow/sdk - v4.4.1
    Preparing search index...
    interface JsxAttributedNode {
        addAttribute(
            attribute:
                | OptionalKind<JsxAttributeStructure>
                | OptionalKind<JsxSpreadAttributeStructure>,
        ): JsxAttributeLike;
        addAttributes(
            attributes: readonly (
                | OptionalKind<JsxAttributeStructure>
                | OptionalKind<JsxSpreadAttributeStructure>
            )[],
        ): JsxAttributeLike[];
        getAttribute(name: string): JsxAttributeLike | undefined;
        getAttribute(
            findFunction: (attribute: JsxAttributeLike) => boolean,
        ): JsxAttributeLike | undefined;
        getAttributeOrThrow(name: string): JsxAttributeLike;
        getAttributeOrThrow(
            findFunction: (attribute: JsxAttributeLike) => boolean,
        ): JsxAttributeLike;
        getAttributes(): JsxAttributeLike[];
        insertAttribute(
            index: number,
            attribute:
                | OptionalKind<JsxAttributeStructure>
                | OptionalKind<JsxSpreadAttributeStructure>,
        ): JsxAttributeLike;
        insertAttributes(
            index: number,
            attributes: readonly (
                | OptionalKind<JsxAttributeStructure>
                | OptionalKind<JsxSpreadAttributeStructure>
            )[],
        ): JsxAttributeLike[];
    }
    Index

    Methods

    • Gets an attribute by name or returns undefined when it can't be found.

      Parameters

      • name: string

        Name to search for.

      Returns JsxAttributeLike | undefined

    • Gets an attribute by a find function or returns undefined when it can't be found.

      Parameters

      Returns JsxAttributeLike | undefined

    • Gets an attribute by name or throws when it can't be found.

      Parameters

      • name: string

        Name to search for.

      Returns JsxAttributeLike

    • Gets an attribute by a find function or throws when it can't be found.

      Parameters

      Returns JsxAttributeLike

    • Gets the JSX element's attributes.

      Returns JsxAttributeLike[]