Text input for MessageCard. This requires the ActionCardAction and HttpPostAction instance.
const card = new MessageCard("Card Test", "Card created: Test", "Lorem ipsum dolor sit amet");const addCommentAction = new ActionCardAction("Add comment");const addCommentActionOK = new HttpPostAction("https://trello.com", "ok");addCommentActionOK.body = "body of post request";const addCommentActionHttpPostActions: HttpPostAction[] = [addCommentActionOK];addCommentAction.actions = addCommentActionHttpPostActions;const addCommentTextInput = new TextInput(true, 200, "comment", true, "Enter a comment", "");const addCommentTextInputs: TextInput[] = [addCommentTextInput];addCommentAction.inputs = addCommentTextInputs;moveAction.inputs = multiChoiceInputs;const potentialActions: ActionCardAction[] = [moveAction];card.potentialAction = potentialActions; Copy
const card = new MessageCard("Card Test", "Card created: Test", "Lorem ipsum dolor sit amet");const addCommentAction = new ActionCardAction("Add comment");const addCommentActionOK = new HttpPostAction("https://trello.com", "ok");addCommentActionOK.body = "body of post request";const addCommentActionHttpPostActions: HttpPostAction[] = [addCommentActionOK];addCommentAction.actions = addCommentActionHttpPostActions;const addCommentTextInput = new TextInput(true, 200, "comment", true, "Enter a comment", "");const addCommentTextInputs: TextInput[] = [addCommentTextInput];addCommentAction.inputs = addCommentTextInputs;moveAction.inputs = multiChoiceInputs;const potentialActions: ActionCardAction[] = [moveAction];card.potentialAction = potentialActions;
Readonly
Generated using TypeDoc
Description
Text input for MessageCard. This requires the ActionCardAction and HttpPostAction instance.
Example