This is the Tooltip widget for Yii2 framework. Allows you to display stylized prompts for users in the content., (*1)
Installation
The preferred way to install this extension is through composer. Check the composer.json for this extension's requirements and dependencies., (*2)
To install, either run, (*3)
$ php composer.phar require antoha-p/yii2-widget-tooltip "@dev"
or add, (*4)
"antoha-p/yii2-widget-tooltip": "@dev"
to the require
section of your composer.json
file., (*5)
Usage
use antoha\tooltip\Tooltip;
echo Tooltip::widget([
'content' => "?",
'title' => "This is an example of how a widget works",
'size' => Tooltip::SIZE_LARGE
]);
License
yii2-widget-tooltip is released under the BSD 3-Clause License. See the bundled LICENSE.md
for details., (*6)