Add set_min() & set_max()

This commit is contained in:
nathan 2022-02-28 14:06:37 -07:00
parent 30ddeb79b0
commit 5406704c74

View File

@ -395,6 +395,24 @@ export class Et2Date extends Et2InputWidget(FormControlMixin(ValidateMixin(LitFl
return value;
}
/**
* Set the minimum allowed date
* @param {string | Date} min
*/
set_min(min : string | Date)
{
this.minDate = min;
}
/**
* Set the minimum allowed date
* @param {string | Date} max
*/
set_max(max : string | Date)
{
this.maxDate = max;
}
_inputGroupInputTemplate()
{
return html`