我试图在网格视图中创建一个更改用户状态的确认框.... 我使用了默认方法,用于创建删除确认框 但它不起作用......
任何人都可以建议任何其他方式..
'suspend'=>function($url,$model){if($model->user_is_social_worker =='1')
return Html::a('<span class="btn btn-xs btn-danger icon-remove bigger-120"style="margin-left:5px;"></span>', $url,['title'=>Yii::t('app','Revoke social worker'),
'data-confirm'=>'are u sure'
]);