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

60 lines (57 loc) 1.46 kB
'use strict'; var base = require('./base'); class Column extends base.ContainerElement { type; /** * The card elements to render inside the `Column`. */ items; /** * Specifies the minimum height of the column in pixels, like `\"80px\"`. */ minHeight; /** * Style hint for `Column`. */ style; /** * Defines how the content should be aligned vertically within the column. 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; /** * `\"auto\"`, `\"stretch\"`, a number representing relative width of the column in the column group, or in version 1.1 and higher, a specific pixel width, like `\"50px\"`. */ width; constructor(...items) { super(); this.type = "Column"; this.items = items; } withOptions(value) { Object.assign(this, value); return this; } withMinHeight(value) { this.minHeight = value; return this; } withStyle(value) { this.style = value; return this; } withVerticalAlignment(value) { this.verticalContentAlignment = value; return this; } withWidth(value) { this.width = value; return this; } addCards(...value) { this.items.push(...value); return this; } } exports.Column = Column; //# sourceMappingURL=column.js.map //# sourceMappingURL=column.js.map