ren2672 发表于 2021-11-1 00:48:36

组合框 组件 如何用脚本来获得焦点?

发现组合框组件中的input是动态生成,如何通过脚本来获得焦点?谢谢 管理员大大。

论坛管理员 发表于 2021-11-1 11:18:59

本帖最后由 论坛管理员 于 2021-11-1 11:31 编辑


您好;blur事件只在input 才会有!
组合框最开始没有input的。
如果点击后才可以使用
var input = this.form.get("combox").combox.input;
if(input && input.node)input.node.focus();


或者您直接调用方法
this.form.get("combox").combox.intoEdit();

ren2672 发表于 2021-11-2 11:38:19

收到,感谢。

论坛管理员 发表于 2021-11-3 09:27:22

ren2672 发表于 2021-11-2 11:38
收到,感谢。

:lol
页: [1]
查看完整版本: 组合框 组件 如何用脚本来获得焦点?