ActionCardAction is an instance that represents a single action in a MessageCard.
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; Copy
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;
Readonly
Generated using TypeDoc
Description
ActionCardAction is an instance that represents a single action in a MessageCard.
Example