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

52 lines (49 loc) 986 B
'use strict'; var base = require('./base'); class NumberInput extends base.InputElement { type; /** * Hint of maximum value (may be ignored by some clients). */ max; /** * Hint of minimum value (may be ignored by some clients). */ min; /** * Description of the input desired. Displayed when no selection has been made. */ placeholder; /** * Initial value for this field. */ value; constructor(options = {}) { super(); this.type = "Input.Number"; this.withOptions(options); } withOptions(value) { Object.assign(this, value); return this; } withMax(value) { this.max = value; return this; } withMin(value) { this.min = value; return this; } withPlaceholder(value) { this.placeholder = value; return this; } withValue(value) { this.value = value; return this; } } exports.NumberInput = NumberInput; //# sourceMappingURL=number.js.map //# sourceMappingURL=number.js.map