@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
52 lines (49 loc) • 1.23 kB
JavaScript
;
var base = require('./base');
class Container extends base.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;
}
}
exports.Container = Container;
//# sourceMappingURL=container.js.map
//# sourceMappingURL=container.js.map