@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) • 966 B
JavaScript
import { InputElement } from './base';
class NumberInput extends 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;
}
}
export { NumberInput };
//# sourceMappingURL=number.mjs.map
//# sourceMappingURL=number.mjs.map