@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.02 kB
JavaScript
import { InputElement } from './base';
class TimeInput extends InputElement {
type;
/**
* Hint of maximum value expressed in HH:MM (may be ignored by some clients).
*/
max;
/**
* Hint of minimum value expressed in HH:MM (may be ignored by some clients).
*/
min;
/**
* Description of the input desired. Displayed when no time has been selected.
*/
placeholder;
/**
* The initial value for this field expressed in HH:MM.
*/
value;
constructor(options = {}) {
super();
this.type = "Input.Time";
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 { TimeInput };
//# sourceMappingURL=time.mjs.map
//# sourceMappingURL=time.mjs.map