title: yii2 gridview filter with custom value
body: <p>I have displayed the values as follows : </p>
  
  <blockquote>
    <p>1 => "Active", 0 => "Inactive"</p>
  </blockquote>
  
  <p>1,0 are the db values.</p>
  
  <p>This is my column. </p>
  
  <pre><code>[
              'label' =&gt; 'Status',
              'attribute' =&gt; 'activeStatus',
              'format' =&gt; 'html',
              'value'=&gt;function ($data){return $data-&gt;activeStatus ? '&lt;span class="label label-success"&gt;Active&lt;/span&gt;' : '&lt;span class="label label-danger"&gt;Inactive&lt;/span&gt;';} 
          ],
  </code></pre>
  
  <p>How to enable grid filter with <code>Active/Inactive</code>? It can be a dropdownlist or just by typing Active/Inactive.</p>