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!!!');
}
});