title: EXTJs Action Column icon
body: <p>I want the icon to change from accept to delete when it is clicked on.
  Set the <code>iconflag = 1</code> because on page load I want the accept icon to be seen.</p>
  
  <p>The code below doesn't satisfy the expectation</p>
  
  <pre><code>{
  
      xtype: 'actioncolumn',
      width: 30,
      items: [{
          flex: 1,
          tooltip: 'Click to expand',
          icon: iconflag == '1' ? "shared/icons/fam/accept.gif" : "shared/icons/fam/delete.gif",
          getClass: this.getActionClass,
          handler: function() {
              if (iconflag == '1') {
                  iconflag = '0';
              } else if (iconflag == '0') {
                  iconflag = '1';
              }
              alert(iconflag);
          }
      }]
  
  },
  </code></pre>
  
  <p>Using EXTJs 4.2</p>