This widget wraps jQuery UI tooltip, which comes in shipped with Yii 1.1.13 (latest jQuery UI version): http://jqueryui.com/tooltip/
Works directly with Yii 1.1.13, for older version you have to include latest jQuery UI libraries yourself.
If you add the extension in /application/protected/extensions/juitip/EJuiTooltip.php you can use it like this:
Yii::import('application.extensions.juitip.EJuiTooltip', true); $this->widget('EJuiTooltip', array('selector' => '.tooltip'));
This way all links that have "tooltip" class and have "title" attribute will start displaying tooltips on hover containing the content of the "title" attribute. For more options check: http://jqueryui.com/tooltip/
Be the first person to leave a comment
Please login to leave your comment.