title: Call a function on a click with ExtJS
body: <p>Simple question !</p>
  
  <p>I have this function in my JS file</p>
  
  <pre><code>function getdata()
  {
      Ext.Ajax.request(
      {
          url: '/app_dev.php/getdata',
          success: function (response)
          {
              console.log('réponse' + response.responseText);
          },
          failure: function (response, opts)
          {
              console.log('server-side failure with status code ' + response.status);
          }
      });
  }
  </code></pre>
  
  <p>and then a menu with a listeners</p>
  
  <pre><code>menu: [
      {
          text: 'Import'
      },
      {
          text: 'Consultation',
          listeners:
          {
              click: function (getdata) {}
          },
  </code></pre>
  
  <p>Not working :(. <br> How can I call the function with clicking on the menu button ?<br>
  Please, I am aware this question is noob but <strong>don't put me some -1</strong> :-).<br>
  From a guy trying to learn javascript !</p>