Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/extjs/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Extjs时间域最小值_Extjs - Fatal编程技术网

Extjs时间域最小值

Extjs时间域最小值,extjs,Extjs,我希望允许用户选择开始时间和结束时间 选择第一个时间字段后,我希望该字段的值成为第二个字段的最小值 最好的方法是什么?这应该可以 Ext.create('Ext.window.Window',{ items:[{ xtype:'timefield', listeners:{ select:function(me, val){

我希望允许用户选择开始时间和结束时间

选择第一个时间字段后,我希望该字段的值成为第二个字段的最小值

最好的方法是什么?

这应该可以

    Ext.create('Ext.window.Window',{
                items:[{
                    xtype:'timefield',
                    listeners:{
                        select:function(me, val){
                            me.up('window').down('[name=secondtimefield]').setMinValue(Ext.Date.format(me.getValue(),'h:i'));
                        }
                    }
                },{
                    xtype:'timefield',
                    name:'secondtimefield'
                }]
            }).show()
我把它都放在一个窗口里,如果你想的话,你可以用sencha小提琴试试