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

41 lines (39 loc) 880 B
import { Action } from './base'; class ExecuteAction extends 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; } } export { ExecuteAction }; //# sourceMappingURL=execute.mjs.map //# sourceMappingURL=execute.mjs.map