Description

Text input for MessageCard. This requires the ActionCardAction and HttpPostAction instance.

Example

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;

Hierarchy

  • TextInput

Implements

  • ITextInput

Constructors

Properties

id: string
isMultiline: boolean
isRequired: boolean
maxLength: number
title: string
value: string

Methods

Generated using TypeDoc