Ну как то так
Код: Выделить всё
[
'class' => 'yii\grid\CheckboxColumn',
'header' => Listing::listingLabel(Listing::ACTIONS),
'options' => [ 'id' => 'listing-actions', 'style' => 'display:none'],
'name' => 'actions[]',
'contentOptions' => ['class' => 'listing-actions', 'style' => 'display:none'],
'headerOptions' => ['class' => 'listing-actions', 'style' => 'display:none'],
'filterOptions' => ['class' => 'listing-actions', 'style' => 'display:none'],
]
Код: Выделить всё
let showActions = false;
$("#action-products").click(function(){
if(!showActions){
$('.listing-actions').css("display","");
showActions = true;
} else {
$('.listing-actions').css("display", "none");
showActions = false;
}
return false;
});