how to override Extjs Timefield to show custom max value

本小妞迷上赌 提交于 2019-12-12 17:28:17

问题


I want to display 11:59 as the maxValue for ExtJs timefield with increment=30. I set maxValue as "23:59" but it did not work, and shows 23:30 as the maximum value. Can anyone specify which function/code to override to display 11:59 as the maximum value?

Thanks in advance.


回答1:


Try overriding 'createStore' function of 'Ext.picker.Time' to include 23:59 in the list, so that if the maxValue is set to 23:59 it will get displayed.



来源:https://stackoverflow.com/questions/25379403/how-to-override-extjs-timefield-to-show-custom-max-value

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