ddinchev / yii-jui-tooltip-widget
jQuery UI Tooltip Widget for Yii 1.1
This package is not auto-updated.
Last update: 2025-03-01 21:11:46 UTC
README
This is minimalistic widget that wraps jQuery UI tooltip, which comes in shipped with Yii 1.1.13 onwards: http://jqueryui.com/tooltip/
Composer installation
The preferred way to install this extension is through composer.
Either run
$ composer require ddinchev/yii-jui-tooltip-widget dev-master
or add
"ddinchev/yii-jui-tooltip-widget": "*"
to the require
section of your composer.json
file.
Now you can use the widget like this:
$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/
Manual installation
Download EJuiTooltip.php
to protected/extensions/juitooltip/EJuiTooltip.php
.
Now you can use the widget like this:
Yii::import('application.extensions.juitip.EJuiTooltip', true); $this->widget('EJuiTooltip', array('selector' => '.tooltip'));