@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) • 706 B
JavaScript
;
var base = require('../base');
class ProgressBar extends base.Element {
type;
/**
* @default `accent`
*/
color;
/**
* percentage
*/
value;
/**
* the max value
*/
max;
constructor(options = {}) {
super();
this.type = "ProgressBar";
Object.assign(this, options);
}
static from(options) {
return new ProgressBar(options);
}
withColor(value) {
this.color = value;
return this;
}
withValue(value) {
this.value = value;
return this;
}
withMax(value) {
this.max = value;
return this;
}
}
exports.ProgressBar = ProgressBar;
//# sourceMappingURL=progress-bar.js.map
//# sourceMappingURL=progress-bar.js.map