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

56 lines (53 loc) 883 B
'use strict'; var base = require('../base'); class Icon extends base.Element { type; /** * name of the icon. */ name; /** * size of the icon. */ size; /** * style of the icon. */ style; /** * color of the icon. */ color; /** * select action */ selectAction; constructor(name, options = {}) { super(); this.type = "Icon"; this.name = name; Object.assign(this, options); } static from(options) { return new Icon(options.name, options); } withSize(value) { this.size = value; return this; } withStyle(value) { this.style = value; return this; } withColor(value) { this.color = value; return this; } withSelectAction(value) { this.selectAction = value; return this; } } exports.Icon = Icon; //# sourceMappingURL=icon.js.map //# sourceMappingURL=icon.js.map