title: Angular-ui-grid -- How do I conditionally show cell templates, according to the cell's value
body: <p>I'm trying to show different templates when the value of the cell is different. </p>
  
  <p>1) how can I access the cell's value(<code>valueOfType</code>) here?</p>
  
  <p>2) Is it possible to access another column's value(<code>valueOfNumber</code>)?</p>
  
  <pre><code>columnDefs: [
               { name:'type',
                 cellTemplate: '&lt;a ng-class="{style1: valueOfType = '1'}" ng-click=fn(valueOfNumber)&gt;&lt;/a&gt;'
               },
               { name: 'number'}
            ],
  </code></pre>
  
  <p>3) Can I conditionally show the template according to cell's value? how can I get <code>cellValue</code> here?</p>
  
  <pre><code>columnDefs: [
               { name:'type',
                 cellTemplate: getTemplate()
               },
              ],
  
  var getTemplate = function() {
     if(cellValue == 'something') {
         return template.html
     } else {
         return anotherTemplate.html
     }
  }
  </code></pre>