This is minimalistic widget that wraps jQuery UI tooltip, which comes in shipped
with Yii 1.1.13 onwards:
http://jqueryui.com/tooltip/, (*1)
Composer installation
The preferred way to install this extension is through
composer., (*2)
Either run, (*3)
$ composer require ddinchev/yii-jui-tooltip-widget dev-master
or add, (*4)
"ddinchev/yii-jui-tooltip-widget": "*"
to the require section of your composer.json file., (*5)
Now you can use the widget like this:, (*6)
$this->widget('EJuiTooltip', array('selector' => '.tooltip'));
Once the widget has been included, 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/, (*7)
Manual installation
Download EJuiTooltip.php to protected/extensions/juitooltip/EJuiTooltip.php.
Now you can use the widget like this:, (*8)
Yii::import('application.extensions.juitip.EJuiTooltip', true);
$this->widget('EJuiTooltip', array('selector' => '.tooltip'));