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) 952 B
'use strict'; var base = require('../base'); class ImageSet extends base.Element { type; /** * Controls how the images are displayed. */ style; /** * Controls the approximate size of each image. The physical dimensions will vary per host. * Auto and stretch are not supported for `ImageSet`. The size will default to medium if * those values are set. */ imageSize; /** * The array of `Image`'s to show. */ images; constructor(...images) { super(); this.type = "ImageSet"; this.images = images; } withOptions(value) { Object.assign(this, value); return this; } withStyle(value) { this.style = value; return this; } withImageSize(value) { this.imageSize = value; return this; } addImages(...value) { this.images.push(...value); return this; } } exports.ImageSet = ImageSet; //# sourceMappingURL=image-set.js.map //# sourceMappingURL=image-set.js.map