-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi support team: I am using zk 9.0.0. In my application, the past dates are all disabled by default(can not clickable). How can I enable them? I tried to add constrain="after 19700101" on the databox control. But it does not work.
Thanks
By default, datebox
doesn't limit you to select a past date, you can see https://www.zkoss.org/zkdemo/input/dateandtime_picker
There is must be somewhere in your project that sets the datebox with a constraint 'no past' (https://www.zkoss.org/wiki/ZKComponentReference/Input/Datebox#Constraint)
Maybe in lang-addon.xml
(there is a way to set component attribute in application-scope, see https://www.zkoss.org/wiki/ZKClient-sideReference/Language_Definition/component#property), or any initialization code. I need to check the source code to find the root cause.
Asked: 2021-12-02 17:19:10 +0800
Seen: 4 times
Last updated: Dec 07 '21