How to pass array value to javascript in zk

眉间皱痕 提交于 2019-12-25 18:37:20

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!