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

46 lines (43 loc) 916 B
'use strict'; var base = require('../base'); class ProgressRing extends base.Element { type; /** * The label of the progress ring. */ label; /** * Controls the relative position of the label to the progress ring. * @default `above` */ labelPosition; /** * The size of the progress ring. * @default `medium` */ size; constructor(options = {}) { super(); this.type = "ProgressRing"; Object.assign(this, options); } static from(options) { return new ProgressRing(options); } withLabel(value, position) { this.label = value; this.labelPosition = position; return this; } withLabelPosition(value) { this.labelPosition = value; return this; } withSize(value) { this.size = value; return this; } } exports.ProgressRing = ProgressRing; //# sourceMappingURL=progress-ring.js.map //# sourceMappingURL=progress-ring.js.map