Answer the question
In order to leave comments, you need to log in
Is it possible to hide column using js in yii2 gridview?
I want to hide/show a column in a gridview without reloading the page. Found a variant here but it doesn't work
https://overcoder.net/q/804136/%D0%BC%D0%BE%D0%B6%...
This is how I tried to hide it.
[
'class' => 'yii\grid\CheckboxColumn',
'header' => Listing::listingLabel(Listing::ACTIONS),
'options' => [ 'id' => 'listing-actions', 'style' => 'display:none'],
'name' => 'actions[]'
]
Answer the question
In order to leave comments, you need to log in
'headerOptions' => ['class' => 'hidden-xs'],
'filterOptions' => ['class' => 'hidden-xs'],
'contentOptions' => ['class' => 'hidden-xs'],
//'footerOptions' => ['class' => 'hidden-xs'],
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question