问题
As per my requirement i have to pass date array to javascript for color change calendar day .
but i have done http://zkfiddle.org/sample/15d409/23-Disable-Datebox way but it's change value after click on calendar
回答1:
Because Clients.evalJavaScript will eval jsCommand AFTER all other js function of widgets are done in that case, since the command for render widget (renderProperties) will be called before doAfterCompose.
What you need is setWidgetOverride, use it to override redraw of calendar widget, please refer to the updated sample.
Calendar coloring sample
来源:https://stackoverflow.com/questions/16102009/how-to-pass-array-value-to-javascript-in-zk