如何覆盖Extjs Timefield来显示自定义的最大值 [英] how to override Extjs Timefield to show custom max value

查看:212
本文介绍了如何覆盖Extjs Timefield来显示自定义的最大值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想显示11:59作为ExtJs时间域的maxValue,增量= 30。我将maxValue设置为23:59,但它没有起作用,并显示23:30作为最大值。任何人都可以指定要覆盖哪个函数/代码以显示最大值为11:59?

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?

提前感谢。

推荐答案

尝试覆盖'Ext.picker.Time'的'createStore'函数,以包括列表中的23:59,如果maxValue设置为23:59,它将显示。

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.

这篇关于如何覆盖Extjs Timefield来显示自定义的最大值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆