Button Component API object for call to action buttons

Hierarchy

Constructors

Properties

Constructors

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

    Parameters

    • parameter: string

    Returns URLComponent

    Throws

    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: "url" | "quick_reply" | "catalog" | "mpm" | "copy_code"

The subtype of the component

type: "button" = "button"

The type of the component

Generated using TypeDoc