Class ActionCardAction

Description

ActionCardAction is an instance that represents a single action in a MessageCard.

Example

const card = new MessageCard("Card Test", "Card created: Test", "Lorem ipsum dolor sit amet");
const dateAction = new ActionCardAction("Set due date");

const dateActionOK = new HttpPostAction("https://trello.com", "ok");
dateActionOK.body = "body of post request";

const dateActionHttpPostActions: HttpPostAction[] = [dateActionOK];
dateAction.actions = dateActionHttpPostActions;

const dateActionInput = new DateInput("dueDate", "Select a date", "");
const dateActionInputs: DateInput[] = [dateActionInput];
dateAction.inputs = dateActionInputs;

const potentialActions: ActionCardAction[] = [dateAction];
card.potentialAction = potentialActions;

Hierarchy

  • ActionCardAction

Implements

  • IActionCardAction

Constructors

Properties

Methods

Constructors

Properties

inputs: InputTypes[]
name: string

Methods

Generated using TypeDoc