title: How to set tap listener for a button in sencha touch?
body: <p>I have 4 buttons in Sencha touch. The text of each button is vote. I want that when the user taps on any of the buttons, the text of the corresponding button should be changed to 'Voted'. I want to write all this code in Controller in the best possible way.  </p>
  
  <p>Code:</p>
  
  <p>buttons.js</p>
  
  <pre><code>items:
  [
   {
       xtype:'button',
       text:"Item1",
       cls:'items'
  
    },
  
       xtype:'button',
       text:"Item2",
       cls:'items'
  
    },
  
       xtype:'button',
       text:"Item3",
       cls:'items'
  
    },
  
       xtype:'button',
       text:"Item4",
       cls:'items'
  
    },
  
  ]
  </code></pre>
  
  <p>Controller.js</p>
  
  <pre><code>control:
   {
     button:
       {
         tap:'OnButtonTap'
       }
   }
     OnButtonTap()
      {
        //how to get value of clicked button here
      }
  </code></pre>