Answer the question
In order to leave comments, you need to log in
How to make row transition in gridview?
I can't figure out if it's possible to make it possible to remove this button
[
'class' => 'yii\grid\ActionColumn',
'template' => '{view}',
'buttons' => [
'view' => function ($url,$model) {
return Html::a(
'<button class = "btn btn-primary">Открыть</button>',
$url);
},
],
Answer the question
In order to leave comments, you need to log in
is it possible to make it possible to remove this button
[
'class' => 'yii\grid\ActionColumn',
'template' => '',
$('#grid tr').on('click',function(){
var id = $(this).data('key');
var url = "http://mysite.com/controller/view?id=";
$(location).attr('href',url+id);
});
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question