Description

Date 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 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

  • DateInput

Implements

  • IDateInput

Constructors

Properties

Methods

Constructors

Properties

id: string
includeTime?: boolean
isRequired?: boolean
title: string
value: string

Methods

Generated using TypeDoc