CardAction

CardAction

A CardAction object as defined in the JSON schema

Constructor

new CardAction(props)

Instantiates a new CardAction

Parameters:
Name Type Description
props object

Properties to initialize the CardAction with

Properties
Name Type Default Description
name string

Sets CardAction#name

path string

Sets CardAction#path

method 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE' 'GET'

Sets CardAction#method

Source:

Members

method :string

Method to use when path is specified

Default Value:
  • 'GET'
Source:

name :string

Name of the action

Source:

path :string

Path for the callback action

Source:

Methods

(static) fromTag(cardActionTag) → {CardAction}

Creates a CardAction from a CardActionTag

Parameters:
Name Type Description
cardActionTag CardActionTag
Source: