title: Yii2 GridView checkbox apply selected class
body: <p>How it is possible to apply selected class on Yii2 Gridview rows,when checkbox selected.</p>
  
  <pre><code> GridView::widget([
      'tableOptions' =&gt; ['class' =&gt; 'table table-striped table-hover'],
      'dataProvider' =&gt; $dataProvider,
      'layout' =&gt; "{items}&lt;div class='row'&gt;&lt;div class='pull-left'&gt; \n {summary}&lt;/div&gt;&lt;div class='pull-right'&gt;{pager}&lt;/div&gt;&lt;/div&gt;",
  
      'columns' =&gt; [
        //  ['class' =&gt; 'yii\grid\SerialColumn'],
          [
              'class' =&gt; 'yii\grid\CheckboxColumn',
              'checkboxOptions' =&gt; function($model, $key, $index, $column) {
                    return ['value' =&gt; $model-&gt;jobid];
              }
  
          ],
  </code></pre>