Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 923

Re: Call controller function by button press event

$
0
0
np_1.attachPress(oController.sayHello);

This is my View code.

 

And the following is from my controller.

sayHello : function(){

     alert("Hello");

}

 

I made a mistake by myself. I'm sorry. The solution is quite obvious.


Viewing all articles
Browse latest Browse all 923

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>