質問

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