ddinchev/yii-jui-tooltip-widget

jQuery UI Tooltip Widget for Yii 1.1

dev-master 2016-11-05 02:46 UTC

This package is not auto-updated.

Last update: 2024-05-11 16:34:43 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'));