[pmg-devel] [PATCH widget-toolkit 1/1] DateTimeField: implement set{Max, Min}Value

Thomas Lamprecht t.lamprecht at proxmox.com
Fri Apr 24 21:17:38 CEST 2020


On 4/24/20 3:57 PM, Dominik Csapak wrote:
> this sets the max/min value for the underlying date and time fields,
> and allowing to only change the value respecting both current date
> and time fields
> e.g.
> if the new maxValue is 2020-10-10 12:00
> and the current value is 2020-10-09 15:00
> do not allow to set the date to 2020-10-10
> and vice versa (if the new limit is on the same day, limit the time range)
> 
> Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
> ---
>  form/DateTimeField.js | 86 +++++++++++++++++++++++++++++++++++++++++++
>  1 file changed, 86 insertions(+)
> 

applied, but due to time constraint only shallowly reviewed - still not
sure about the complexity of this..



More information about the pmg-devel mailing list