jeudi 10 avril 2014

ViewController: how to access view's childs?




Throughout the life of the view controller it's possible that references come and go, so I don't think adding methods for references is appropriate.





That's because you could add components at run time?

One of the things I hate the most of MVC is the use of strings to get references to components via "ref" or someComp.down("xxxx").


Chances to reconsider a getter for those references?


I would like this:


this.getView().getUserName()...


than


this.getReference("userName")...


even if former is more verbose.


Nevertheless the more I read about ExtJS 5 more I like it.


Regards.





Aucun commentaire:

Enregistrer un commentaire