如何刷新datepicker?函数.datePickerMultiMonth() [英] how to refresh datepicker? function .datePickerMultiMonth()
问题描述
我在本例中有一个问题(内联日期戳):
http://www.kelvinluck.com/assets/jquery/datePicker/v2/ demo / datePickerMultiMonth5.html
我添加了一个renderCallback功能,可以根据复选框...禁用周日...(例如,当选中了星期六复选框时禁用显示所有星期)
使用datePickerMultiMonth()初始化日历时,此功能非常正常。
但是如何当其中一个复选框更改时,我可以刷新内联日历吗?(例如,取消选中星期一复选框)?
原样:当我选择/取消选中一个复选框时,datepicker保持不变..只有手动切换到下个月才更新和禁用例如所有星期一...更改星期一复选框时应立即发生。
您有什么想法可以刷新datepicket吗?非常感谢您的帮助!
干杯,
Markus
.datepicker(refresh)
你可以在 http://jqueryui.com/demos/datepicker/#method-refresh 上找到它
单击方法选项卡
Really like datepicker. Thanks a lot for this great library!
I have got one question for you based in this example (inline datepicker):
http://www.kelvinluck.com/assets/jquery/datePicker/v2/demo/datePickerMultiMonth5.html
I added a "renderCallback" function to disable week days based on checkboxes... (e.g. when saturday-checkbox is checked disable all saturdays shown).
This works perfectly fine when initializing the calender with datePickerMultiMonth().
But how can I refresh the inline calender when one of the checkboxes is changed (e.g. deselect monday-checkbox)?
As-is: when I select / deselect a checkbox the datepicker remains unchanged.. only after manually changing to the next month it updates and disables e.g. all mondays... this should immediately happen when changing the monday-checkbox.
Do you have any idea how I can refresh the datepicket? Thanks a lot for your help!
Cheers, Markus
.datepicker( "refresh" )
You can find it on http://jqueryui.com/demos/datepicker/#method-refresh click the "Methods" tab
这篇关于如何刷新datepicker?函数.datePickerMultiMonth()的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!