0

In the data gridview, I am able to put tooltip (http://yiibooster.clevertech.biz/javascript.html#tooltips) by using headerHtmlOptions and get the data from the database.

My problem is that I can't find a way to put a link in the tooltip. For example, "This is tooltip. See more.." If 'See more..' is clicked it should go to another page. Thanks.

4

2 回答 2

0

Try this with changes of your script!

array(
        'header'=>'Video Url',
        'name'  => 'video_url',
        //'value' => 'CHtml::link($data->title,$data->video_url, array("target"=>"_blank"))',
        'value' => 'CHtml::link("View Video", $data->video_url, array("target"=>"_blank"))',             
        'type'  => 'raw',
    ),

Perhaps you are missing target_blank

于 2013-07-18T09:50:00.950 回答
0

I have found this extension (http://www.yiiframework.com/extension/tooltipster/) and it works the way i want. It made possible for me to have a tooltip with link. :))

于 2013-07-24T00:29:50.677 回答