Yii , show tooltip in cgridview( table ) value
- by Kiran
I want to show tooltip in cgridview value as on hover on column it have to show whole contant stored in variable.
I want to show contant in variable $data["comment"] as a tooltip ( title ), and currently it shows whole string as - $data["comment"].
array(
'name'=>'Comment',
'header'=>'Comment',
'value'=>'(strlen($data["comment"])>35)?substr($data["comment"], 0, 35)."..":$data["comment"];',
'htmlOptions'=>array('title'=>'$data["comment"]'), // this what i have do
),