【发布时间】:2014-06-02 21:07:14
【问题描述】:
给定一个这样的组件:
{xtype: 'textfield', name: 'title', fieldLabel: 'Title', autoFocus: true}
是否可以查询任意容器(例如窗口)中具有autoFocus 属性的所有项目,以在其上调用.focus(...) 方法?
试过了……
'[autoFocus]'
'*[autoFocus]'
'*[autoFocus=true]'
...与component.down 和Ext.ComponentQuery.query(和其他人),但没有运气。
【问题讨论】:
标签: javascript extjs extjs5