title: how to create a custom confirmation box in yii2
body: <p>I was trying to create a confirmation box in my grid view for changing the user status....
  I used the default method which was used to create confirmation box for delete
  but its not working...</p>
  
  <p>can anyone suggest any other way..</p>
  
  <p><img src="https://i.stack.imgur.com/1VFqE.png" alt="image of my view"> </p>
  
  <pre><code>'suspend'=&gt;function($url,$model){if($model-&gt;user_is_social_worker =='1')
  return Html::a('&lt;span class="btn btn-xs btn-danger icon-remove bigger-120"style="margin-left:5px;"&gt;&lt;/span&gt;',                                                                         $url,['title'=&gt;Yii::t('app','Revoke social worker'),
  'data-confirm'=&gt;'are u sure'
  ]);
  </code></pre>