Threaded View
-
4 Dec 2011 5:03 PM #1
Unanswered: Calling view methods from custom HTML
Unanswered: Calling view methods from custom HTML
I have a view that is a container with custom HTML. In my custom HTML, I want to be able to call the methods in the view. How can I do that?
The code should look something like this.
Code:Ext.define('MyApp.view.MyPanel', { extend: 'Ext.Panel', config: { html: '<div><a href="???????">Call view method 1</a><a href="???????">Call view method 2</a></div>' }, method1: function() { console.log('Called method 1!!!'); }, method2: function() { console.log('Called method 2!!!'); } });


Reply With Quote