UNPKG

@microsoft/teams.cards

Version:

<p> <a href="https://www.npmjs.com/package/@microsoft/teams.cards" target="_blank"> <img src="https://img.shields.io/npm/v/@microsoft/teams.cards" /> </a> <a href="https://www.npmjs.com/package/@microsoft/teams.cards?activeTab=code" ta

43 lines (40 loc) 908 B
'use strict'; var base = require('./base'); class ExecuteAction extends base.Action { type; /** * The card author-defined verb associated with this action. */ verb; /** * Initial data that input fields will be combined with. These are essentially ‘hidden’ properties. */ data; /** * Controls which inputs are associated with the action. */ associatedInputs; constructor(options = {}) { super(); this.type = "Action.Execute"; Object.assign(this, options); } static from(options) { return new ExecuteAction(options); } withVerb(value) { this.verb = value; return this; } withData(value) { this.data = value; return this; } withAssociatedInputs(value) { this.associatedInputs = value; return this; } } exports.ExecuteAction = ExecuteAction; //# sourceMappingURL=execute.js.map //# sourceMappingURL=execute.js.map