whatsapp-api-js - v5.2.0
    Preparing search index...

    Class CopyComponent

    Button Component API object for copy coupon button

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    Constructors

    • Creates a button component for a Template message with copy coupon button.

      Parameters

      • parameter: string

        The coupon's code of the button to copy.

      Returns CopyComponent

      If parameter is an empty string.

    Properties

    index: number = NaN

    The index of the component (assigned after calling _build)

    parameters: [ButtonParameter]

    The parameter of the component

    sub_type: "flow" | "url" | "quick_reply" | "catalog" | "mpm" | "copy_code"

    The subtype of the component

    type: "button"

    The type of the component