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

    Class URLComponent

    Button Component API object for call to action buttons

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    Constructors

    • Creates a button component for a Template message with call to action buttons.

      Parameters

      • parameter: string

        The variable for the url button.

      Returns URLComponent

      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