Yii , show tooltip in cgridview( table ) value

Posted by Kiran on Stack Overflow See other posts from Stack Overflow or by Kiran
Published on 2012-06-16T11:03:42Z Indexed on 2012/06/16 15:16 UTC
Read the original article Hit count: 733

Filed under:
|

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
                    ),

© Stack Overflow or respective owner

Related posts about php

Related posts about yii