@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 (42 loc) • 841 B
JavaScript
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;
}
}
export { AuthCardbutton };
//# sourceMappingURL=auth-card-button.mjs.map
//# sourceMappingURL=auth-card-button.mjs.map