문제

I am having having little success with issuing Ext.ComponentQuery.query statements to retrieve components from the document.

Example Fiddle

The following work:

Ext.ComponentQuery.query('panel')
Ext.ComponentQuery.query('panel[title=Layout]')

The following don't work:

Ext.ComponentQuery.query('#imageHolder'); //itemId
Ext.ComponentQuery.query('panel#imageHolder'); //itemId of a panel
Ext.ComponentQuery.query('image'); //xtype
Ext.ComponentQuery.query('contactcarousel'); //user defined xtype

Can anybody kindly help me understand why those don't work? I am following the Extjs Ext.ComponentQuery Doc Page.

도움이 되었습니까?

해결책

In console, change <top frame> to uxiframe-xxxx and it will work. Other frame is as other browser window, you must switch to it to access the page.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top