title: Apply class on a table of GridView Yii2
body: <p>I want to apply class on table generated by <code>GridView::widget()</code> in Yii2.</p>
  
  <pre><code> &lt;?= GridView::widget([
          'dataProvider' =&gt; $dataProvider,
          'filterModel' =&gt; $searchModel,
          'columns' =&gt; [
              ['class' =&gt; 'yii\grid\SerialColumn'],
              'mobile_number',
              'email:email',
              'name',
              'national_id',// and so....
  </code></pre>
  
  <p>How can I apply the CSS on the table <code>GridView::widget()</code>? I want to apply this:</p>
  
  <pre><code>&lt;table class="table tblSec"&gt;
  </code></pre>