更改事件Ext.form.DateField [英] On change event Ext.form.DateField

查看:133
本文介绍了更改事件Ext.form.DateField的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Ext.form.DateField:

I have a Ext.form.DateField:

new Ext.form.DateField({
            id: 'date_from',
            format: 'd/m/Y',
            editable: false,
            listeners: {
            change: function (t,n,o) {
                console.log('dsd');
            }

        }
 })

不幸的是,更改事件似乎没有执行。

However unfortunately the change event does not seem to be executed.

我也试过:

new Ext.form.DateField({
            id: 'date_from',
            format: 'd/m/Y',
            editable: false,
            change: function (t,n,o) {
                console.log('dsd');
            }
})

然而也没有用。任何建议赞赏。

However also to no avail. Any advice appreciated.

谢谢

推荐答案

更改事件仅在模糊时触发。如果您正在尝试处理任何日期选择,请使用 选择 事件(在ExtJS 3.4中)。

The change event only fires on blur. If you are trying to handle any date selection use the select event instead (in ExtJS 3.4).

这篇关于更改事件Ext.form.DateField的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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