Quantcast
Viewing all articles
Browse latest Browse all 9076

Re: How to Access Controller Function from within onBeforeShow(evt) in view

Well..Thanks Atanu Image may be NSFW.
Clik here to view.

 

I just figured Out another way. As the createContent(oController) of the view gets called first, we can have this.controller = oController inside createContent(oController)

 

onBeforeShow(evt) {

     alert(this.controller);          //Here we can access this

}

 

createContent(oController) {

     this.controller = oController;

}


Viewing all articles
Browse latest Browse all 9076

Trending Articles