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

50 lines (48 loc) 1.21 kB
import { ContainerElement } from './base'; class Container extends ContainerElement { type; /** * The card elements to render inside the `Container`. */ items; /** * Style hint for `Container`. */ style; /** * Defines how the content should be aligned vertically within the container. When not specified, the value of verticalContentAlignment is inherited from the parent container. If no parent container has verticalContentAlignment set, it defaults to Top. */ verticalContentAlignment; /** * Specifies the minimum height of the container in pixels, like `\"80px\"`. */ minHeight; constructor(...items) { super(); this.type = "Container"; this.items = items; } withOptions(value) { Object.assign(this, value); return this; } withStyle(value) { this.style = value; return this; } withVerticalAlignment(value) { this.verticalContentAlignment = value; return this; } withMinHeight(value) { this.minHeight = value; return this; } addCards(...value) { this.items.push(...value); return this; } } export { Container }; //# sourceMappingURL=container.mjs.map //# sourceMappingURL=container.mjs.map