I want to add a data-title attribute to a CGridView column so that a tooltip is shown on hover using this attribute’s value, is it doable?
as in
'columns'=>array(
array(
'header' => ' ',
'name' => 'photo',
'value'=>'"<img src=\"" . Yii::app()->thumb->save("var/product/product1.png", 26, 26, true) . "\" />"',
'type'=>'html',
'filter' => false,
'headerHtmlOptions' => array(
'class' => 'photo-column',
),
'htmlOptions' => array(
'class' => 'photo-column',
'data-title'=>'$data->description' //<==
),
),
),