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

45 lines (43 loc) 868 B
'use strict'; class AuthCardbutton { /** * The type of the button. */ type; /** * The value associated with the button. The meaning of value depends on the button’s type. */ value; /** * The caption of the button. */ title; /** * A URL to an image to display alongside the button’s caption. */ image; constructor(type, value, options = {}) { this.type = type; this.value = value; Object.assign(this, options); } withType(value) { this.type = value; return this; } withValue(value) { this.value = value; return this; } withTitle(value) { this.title = value; return this; } withImage(value) { this.image = value; return this; } } exports.AuthCardbutton = AuthCardbutton; //# sourceMappingURL=auth-card-button.js.map //# sourceMappingURL=auth-card-button.js.map