@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
40 lines (38 loc) • 668 B
JavaScript
import { Element } from '../base';
class FactSet extends Element {
type;
/**
* The array of `Fact`'s
*/
facts;
constructor(...facts) {
super();
this.type = "FactSet";
this.facts = facts;
}
withOptions(value) {
Object.assign(this, value);
return this;
}
addFacts(...value) {
this.facts.push(...value);
return this;
}
}
class Fact {
/**
* The title of the fact.
*/
title;
/**
* The value of the fact.
*/
value;
constructor(title, value) {
this.title = title;
this.value = value;
}
}
export { Fact, FactSet };
//# sourceMappingURL=fact-set.mjs.map
//# sourceMappingURL=fact-set.mjs.map