title: How to add an action button for a specific row in gridview YII2 Advanced Template?
body: <p>I have a <code>GridView</code> for a specific table in the database. This table has a status column which is <code>0 or 1</code>. </p>
  
  <p>I want to add an Update action button in the <code>GridView</code> for the rows which are status column is 0 only to help admin update this.</p>
  
  <p>I tried that but something is wrong:</p>
  
  <pre><code> [
         'attribute' =&gt; 'Status',
         'format'    =&gt; 'raw',
          'value'    =&gt; function (\backend\models\Document $model) {
                           if ($model-&gt;Status == 0) {
                                  ['class' =&gt; 'yii\grid\ActionColumn',
                                      'template' =&gt; '{Update}',
                                  ];
                              } 
                          },
  ],
  </code></pre>