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

44 lines (42 loc) 930 B
import { Element } from '../base'; class ImageSet extends 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; } } export { ImageSet }; //# sourceMappingURL=image-set.mjs.map //# sourceMappingURL=image-set.mjs.map