@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.05 kB
JavaScript
;
var base = require('./base');
class DateInput extends base.InputElement {
type;
/**
* Hint of maximum value expressed in YYYY-MM-DD(may be ignored by some clients).
*/
max;
/**
* Hint of minimum value expressed in YYYY-MM-DD(may be ignored by some clients).
*/
min;
/**
* Description of the input desired. Displayed when no selection has been made.
*/
placeholder;
/**
* The initial value for this field expressed in YYYY-MM-DD.
*/
value;
constructor(options = {}) {
super();
this.type = "Input.Date";
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.DateInput = DateInput;
//# sourceMappingURL=date.js.map
//# sourceMappingURL=date.js.map