Open
Description
I want the datetime input have the after and before constraints.
This code will shows you a datetime dialog:
from mininterface import run
from mininterface.tag import DatetimeTag
m = run()
m.form({"my datetime": DatetimeTag()})
Implement these attributes to the DatetimeTag
class. Add there the _validate
method that checks these two.
This should be sufficient to make this work:
m.form({"my datetime": DatetimeTag(before=date(2025,5,19))})