0

How to set constraint on a Calendar

asked 2013-07-08 13:22:43 +0800

pflo gravatar image pflo
21 1

updated 2013-07-09 06:10:37 +0800

sjoshi gravatar image sjoshi flag of India
3493 1 8
http://zkframeworkhint.bl...

Hello,

I use the component zul.calendar and I would like to set a minimal date.

With datebox, when we set a constraint "after dateMin", user cannot click on a date before 'dateMin' in the calendar. But, it is not possible to set a constraint on a calendar like this :

 <calendar constraint="after date1" />

Do you know if it is possible to set a minimal date on this component ?

Thank for your help

delete flag offensive retag edit

4 Answers

Sort by ยป oldest newest most voted
3

answered 2013-07-10 06:25:38 +0800

hswain gravatar image hswain flag of India
1763 3 10
http://corejavaexample.bl...

updated 2013-07-10 06:26:57 +0800

may be help

<datebox id="db1" cols="7" format="MM/dd/yyyy"  mold="rounded"
             constraint="no future,after 19860617"/>
link publish delete flag offensive edit
1

answered 2013-07-15 06:05:57 +0800

hswain gravatar image hswain flag of India
1763 3 10
http://corejavaexample.bl...

it's may be help.

http://zkfiddle.org/sample/15d409/23-Disable-Datebox

link publish delete flag offensive edit
0

answered 2013-07-10 10:16:48 +0800

pflo gravatar image pflo
21 1

Hello hswain,

Thank for your answers but I know that. When you open the calendar of the datebox, user cannot select a date before "dateMin" (19860617 in your case).

I would like to do the same on the calendar component without datebox.

<calendar constraint="after date1" />

does not work.

link publish delete flag offensive edit

Comments

calendar does not have constraint attribute you can do in different way. may be help http://zkfiddle.org/sample/15d409/22-Disable-Datebox

hswain ( 2013-07-11 07:11:39 +0800 )edit
0

answered 2013-07-12 15:18:39 +0800

pflo gravatar image pflo
21 1

Hello,

thanks a lot for your help. It is a way but it does not forbidden user to click on a day before the date. It is a shame to not have a similar treatment as the datebox.

link publish delete flag offensive edit
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow
1 follower

RSS

Stats

Asked: 2013-07-08 13:22:43 +0800

Seen: 29 times

Last updated: Jul 15 '13

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More