@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) • 1.03 kB
JavaScript
import { InputElement } from './base';
class DateInput extends 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;
}
}
export { DateInput };
//# sourceMappingURL=date.mjs.map
//# sourceMappingURL=date.mjs.map