0

Calendar Renderer for Custom Calendar

asked 2013-06-19 04:36:00 +0800

JustinFrost gravatar image JustinFrost
139 1 6

Hi I have created a custom Calendar widget which extends org.zkoss.zul.Calendar.

I need to create a custom renderer for this so that I can control how individual days display and disable some dates.

Is there a way to do this in Java code (without resorting to script on the zul page ?)

Thanks.

delete flag offensive retag edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2013-06-24 10:10:13 +0800

cor3000 gravatar image cor3000
4406 2 7
ZK Team

Unfortunately there is no Java API to customize that. In order to do so can as you noted override methods of zul.db.Renderer at page level. See and example here http://zkfiddle.org/sample/2dih3qq/3-how-to-disable-day-in-Datebox-in-Zk

Or if you need a completely separate component beside the default calendar component, you can create your own custom component as in this example

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
2 followers

RSS

Stats

Asked: 2013-06-19 04:36:00 +0800

Seen: 36 times

Last updated: Jun 24 '13

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