References in Ext JS5

http://existdissolve.com/2014/11/references-in-ext-js-5/

 

The reference config instructs the component to register itself with its owning view.

If you’re using a ViewController, this is done automatically.

Otherwise, you’ll want to assign a referenceHolder config to the owning view

 

也就是说container配置了referenceHolder: true,

就可以用lookup来匹配reference,

而不需要额外的控制器

posted @ 2018-12-19 21:36  老豆芽  阅读(94)  评论(0)    收藏  举报