title: How to truncate text in a specific Yii2 GridView column and show it on hover?
body: <p>I render a table using the GridView widget:</p>
  
  <pre><code>&lt;?= GridView::widget([
      'dataProvider' =&gt; $dataProvider,
      'filterModel' =&gt; $searchModel,   
      'columns' =&gt; [
          'subject',
          // ...
      ],
  ]) ?&gt;
  </code></pre>
  
  <p>I need to truncate the text displayed in the "subject" column and show it fully on hover, while also preserving the filter row search capability. </p>
  
  <p>I managed to truncate the text using StringHelper::TruncateWords(), but couldn't figure out the filter row and the hover part:</p>
  
  <pre><code>[
              'attribute' =&gt; 'subject',
              'value' =&gt; function($model) {
                  $ret = \yii\helpers\StringHelper::truncateWords($model-&gt;subject, 5, '...', false);
                  return $ret;
              }
  ],
  </code></pre>
  
  <p>Maybe there is a way to do this with pure Bootstrap without the need for StringHelper, but I wasn't able to make it work...</p>